annotate docs/nitros9guide/cmp.refentry @ 3295:6b7a7b233925 default tip

makefile: Allow PORTS with level1/2 mix https://sourceforge.net/p/nitros9/feature-requests/10/
author Tormod Volden <debian.tormod@gmail.com>
date Tue, 19 Apr 2022 18:12:17 +0200
parents c565a4700689
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
1 <refentry id="cmp">
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
2 <refnamediv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
3 <refname>CMP</refname>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
4 <refpurpose>File Comparison Utility</refpurpose>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
5 </refnamediv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
6
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
7 <refsynopsisdiv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
8 <cmdsynopsis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
9 <command>cmp</command>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
10 <arg choice="plain">
975
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 134
diff changeset
11 <replaceable>file1</replaceable>
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
12 </arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
13 <arg choice="plain">
975
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 134
diff changeset
14 <replaceable>file2</replaceable>
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
15 </arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
16 </cmdsynopsis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
17 </refsynopsisdiv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
18
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
19 <refsect1><title>Description</title>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
20 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
21 Opens two files and performs a comparison of the binary values of
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
22 the corresponding data bytes of the files. If any differences are
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
23 encountered, the file offset (address) and the values of the bytes
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
24 from each file are displayed in hexadecimal.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
25 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
26 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
27 The comparison ends when end-of-file is encountered on either
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
28 file. A summary of the number of bytes compared and the number of
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
29 differences found is then displayed.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
30 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
31 </refsect1>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
32 <refsect1><title>Examples</title>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
33 <screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
34
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
35 OS9: cmp red blue
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
36
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
37 Differences
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
38
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
39 byte #1 #2
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
40 ======== == ==
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
41 00000013 00 01
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
42 00000022 B0 B1
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
43 0000002A 9B AB
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
44 0000002B 3B 36
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
45 0000002C 6D 65
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
46
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
47 Bytes compared: 0000002D
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
48 Bytes different: 00000005
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
49
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
50 OS9: cmp red red
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
51
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
52 Differences
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
53 None ...
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
54
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
55 Bytes compared: 0000002D
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
56 Bytes different: 00000000
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
57 </screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
58 </refsect1>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
59 </refentry>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
60