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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

diff<br />

Limits<br />

Portability<br />

Related Information<br />

cmp, comm, patch<br />

The longest input line is 1024 bytes. Except under –h, files are limited to INT_MAX<br />

lines. INT_MAX is defined in limits.h.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The –D, –f, –H, –h, –i, –m, –s, and –w options, and the n argument to the –c<br />

option, are extensions of the P<strong>OS</strong>IX standard.<br />

J. W. Hunt and M. D. McIlroy, An Algorithm for Differential File Comparison, Report<br />

41, from Computing Science, Bell Laboratories, Murray Hill, NJ 07974, (June 1976),<br />

9 pages.<br />

dircmp — Compare directories<br />

Format<br />

Description<br />

Options<br />

Localization<br />

dircmp [–d] [–s] [–wn] dir1 dir2<br />

Note: The dircmp utility is fully supported for compatibility with older <strong>UNIX</strong><br />

systems. However, it is recommended that diff –r be used instead because it<br />

may provide greater functionality and is considered the standard for portable<br />

<strong>UNIX</strong> applications as defined by P<strong>OS</strong>IX.2 IEEE standard 1003.2-1992.<br />

dircmp examines dir1 and dir2 and generates listings about the contents of the<br />

directories. Listings of files that are unique to each directory are generated for all<br />

the options. If no option is entered, a list is output indicating whether the filenames<br />

common to both directories have the same contents.<br />

–d Compare the contents of files with the same name in both directories and<br />

output a list telling what must be changed in the two files to bring them into<br />

agreement. The list format is described in diff.<br />

–s Suppress messages about identical files.<br />

–wn Change the width of the output line to n characters. The default width is 72.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

240 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!