[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    dircmp(1) manual page Table of Contents

Name

dircmp - directory comparison

Synopsis

dircmp [ -ds ] [ -w n ] dir1 dir2

Availability

SUNWesu

Description

The dircmp command examines dir1 and dir2 and generates various tabulated information about the contents of the directories. Listings of files that are unique to each directory are generated for all the options. If no option is entered, a list is output indicating whether the file names common to both directories have the same contents.

Options

The following options are supported:
-d
Compare the contents of files with the same name in both directories and output a list telling what must be changed in the two files to bring them into agreement. The list format is described in diff(1) .
-s
Suppress messages about identical files.
-w n
Change the width of the output line to n characters. The default width is 72.

Operands

The following operands are supported:
dir1
dir2
A path name of a directory to be compared.

Environment

See environ(5) for descriptions of the following environment variables that affect the execution of dircmp: LC_COLLATE , LC_CTYPE , LC_MESSAGES , and NLSPATH .

Exit Status

The following exit values are returned:
  1. Successful completion.
    >0
    An error occurred. (differences in directory contents are not considered errors)

    See Also

    cmp(1) , diff(1) , environ(5)


    Table of Contents