|Comparing and Merging Files with GNU diff and patch|
by David MacKenzie, Paul Eggert, and Richard Stallman
Paperback (6"x9"), 120 pages
RRP £12.95 ($19.95)
"Well packaged... the quality of information is excellent" --- Linux User and Developer Magazine (Issue 36, Feb 2004) Get a printed copy>>>
cmp command compares two files, and if they differ,
tells the first byte and line number where they differ. Bytes and
lines are numbered starting with 1. The arguments of
are as follows:
cmp options... from-file [to-file [from-skip [to-skip]]]
The file name ‘-’ is always the standard input.
also uses the standard input if one file name is omitted. The
from-skip and to-skip operands specify how many bytes to
ignore at the start of each file; they are equivalent to the
An exit status of 0 means no differences were found, 1 means some differences were found, and 2 means trouble.
|ISBN 0954161750||Comparing and Merging Files with GNU diff and patch||See the print edition|