DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

dircmp(C)


dircmp -- compare directories

Syntax

dircmp [ -ds ] [ -wn ] dir1 dir2

Description

The dircmp command examines dir1 and dir2 and generates tabulated information about the contents of the directories. Listings of files that are unique to each directory are generated in addition to a list that indicates whether the files common to both directories have the same contents.

dircmp takes the following options:


-d
Performs a full diff(C) on each pair of like-named text files if they are not identical. If files differ that are neither text files nor empty, dircmp prints only the name and type (see file(C)).

-s
Suppresses output of identical filenames.

-wn
Prints the name of the files and directories being compared in two columns; each column is assigned a width of n/2. dircmp truncates pathnames that are too long to fit in a column. The default value of n is 72.
If the -d option is not specified, dircmp compares only text and empty files that are common to both directories.

Exit values

dircmp returns the following values:

0
successful completion

>0
an error occurred (differences in directory contents are not considered errors)

See also

cmp(C), diff(C), file(C)

Standards conformance

dircmp is conformant with:

AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992: note that this command is marked as to be withdrawn.


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005