16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

algorithm can handle arbitrarily large files; however, it is not particularly<br />

good at finding a minimal set of differences in files with many differences.<br />

–i Ignores the case of letters when doing the comparison.<br />

–m Produces the contents of path2 with extra formatter request lines<br />

interspersed to show which lines were added (those with vertical bars in the<br />

right margin) and deleted (indicated by a * in the right margin).<br />

–M Is an IBM internal option and is not supported.<br />

–n Is an IBM internal option and is not supported.<br />

–N Is an IBM internal option and is not supported.<br />

–r Compares corresponding files under the directories, and recursively<br />

compares corresponding files under corresponding subdirectories under the<br />

directories. You can use this option when you specify two directory names<br />

on the command line.<br />

–s Compares two directories, file by file, and prints messages for identical files<br />

between the two directories.<br />

–w Ignores white space when making the comparison.<br />

The following example illustrates the effect of the –c option on the output of the diff<br />

command. The following two files, price1 and price2, are compared with and<br />

without the use of the –c option.<br />

The contents of price1 are as follows:<br />

Company X Price List:<br />

$ 0.39 -- Package of Groat Clusters<br />

$ 5.00 -- Candy Apple Sampler Pack<br />

$ 12.00 -- Box of Crunchy Frog Chocolates<br />

$ 15.99 -- Instant Rain (Just Add Water)<br />

$ 20.00 -- Asparagus Firmness Meter<br />

$ 25.00 -- Package of Seeds for 35 Herbs<br />

$ 30.00 -- Child’s Riding Hood (Red)<br />

$ 35.00 -- Genuine Placebos<br />

$ 45.00 -- Case of Simulated Soy Bean Oil<br />

$ 75.88 -- No-Name Contact Lenses<br />

$ 99.99 -- Kiddie Destructo-Bot<br />

$125.00 -- Emperor’s New Clothes<br />

The contents of price2 are as follows:<br />

Company X Price List:<br />

$ 0.39 -- Package of Groat Clusters<br />

$ 5.49 -- Candy Apple Sampler Pack<br />

$ 12.00 -- Box of Crunchy Frog Chocolates<br />

$ 15.99 -- Instant Rain (Just Add Water)<br />

$ 17.00 -- Simulated Naugahyde cleaner<br />

$ 20.00 -- Asparagus Firmness Meter<br />

$ 25.00 -- Package of Seeds for 35 Herbs<br />

$ 30.00 -- Child’s Riding Hood (Red)<br />

$ 35.00 -- Genuine Placebos<br />

$ 45.00 -- Case of Simulated Soy Bean Oil<br />

$ 75.88 -- No-Name Contact Lenses<br />

$ 99.99 -- Kiddie Destructo-Bot<br />

The command:<br />

diff price1 price2<br />

diff<br />

Chapter 2. Shell command descriptions 237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!