|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>>>
sdiff command merges two files and interactively outputs the
results. Its arguments are as follows:
sdiff -o outfile options... from-file to-file
This merges from-file with to-file, with output to outfile.
If from-file is a directory and to-file is not,
compares the file in from-file whose file name is that of to-file,
and vice versa. from-file and to-file may not both be
sdiff options begin with ‘-’, so normally from-file
and to-file may not begin with ‘-’. However,
-- as an
argument by itself treats the remaining arguments as file names even if
they begin with ‘-’. You may not use ‘-’ as an input file.
--output) produces a
side-by-side difference. This usage is obsolete; use the
--side-by-side option of
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|