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.

diff<br />

Localization<br />

results in the following output:<br />

3c3<br />

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

---<br />

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

5a6<br />

> $ 17.00 -- Simulated Naugahyde cleaner<br />

13d13<br />

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

The addition of the –c option, as in:<br />

diff -c price1 price2<br />

results in the following output:<br />

*** price1 Wed Oct 1 13:59:18 1997<br />

--- price2 Wed Oct 1 14:03:36 1997<br />

***************<br />

*** 1,8 ****<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 />

--- 1,9 ----<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 />

***************<br />

*** 10,13 ****<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 />

--- 11,13 ----<br />

diff –c marks lines removed from price1 with –, lines added to price1 with + and<br />

lines changed in both files with !. In the example, diff shows the default three lines<br />

of context around each changed line. One line was changed in both files (marked<br />

with !), one line was added to price1 (marked with +), and one line was removed<br />

from price1 (marked with –).<br />

Note: If there are no marks to be shown in the corresponding lines of the file being<br />

compared, the lines are not displayed. Lines 11 to 13 of price2 are<br />

suppressed for this reason.<br />

diff uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

238 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!