* Note : consider using sdiff instead * User Commands diff(1)
diff - display line-by-line differences between pairs of diff [
-bitw ] [ -c | -e | -f | -h | -n ] file1 file2 diff [ -bitw ] [
-C number ] file1 file2 diff [ -bitw ] [ -D string ] file1 file2
diff [ -bitw ] [ -c | -e | -f | -h | -n ] [ -l ] [ -r ] [ -s ] [
-S name ] directory1 directory2 The diff utility will compare
the contents of file1 and file2 and write to standard output a
list of changes neces- sary to convert file1 into file2. This
list should be minimal. No output will be produced if the files
are ident- The normal output contains lines of these forms: n1 a
n3,n4 n1,n2 d n3 n1,n2 c n3,n4 where n1 and n2 represent lines
file1 and n3 and n4 represent lines in file2 These lines
resemble ed(1) commands to convert file1 to file2. By exchanging
a for d and read- ing backward, file2 can be converted to file1.
As in ed, identical pairs, where n1=n2 or n3=n4, are abbreviated
as a Following each of these lines come all the lines that are
affected i