Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dircmp(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cmp

diff



DIRCMP(1,C)                 AIX Commands Reference                  DIRCMP(1,C)



-------------------------------------------------------------------------------
dircmp



PURPOSE

Compares two directories and the contents of their common files.

SYNTAX


          +--------+
dircmp ---| +----+ |-- directory1 -- directory2 --|
          +-| -d |-+
           ^| -s ||
           |+----+|
           +------+


DESCRIPTION

The dircmp command reads directory1 and directory2 and writes information about
their contents to standard output.  First, the dircmp command compares the file
names in each directory.  When the same file names appear in both, the command
compares the contents of those files.  The dircmp command lists the files
unique to each directory in the output.  It then lists the files with identical
names in both directories, but with different contents.  If entered with no
flag, it also lists files that have identical contents as well as identical
names in both directories.

FLAGS

-d Displays for each common file name both versions of the differing file
   lines.  The display format is the same as that of the "diff" command.

-s Does not list the names of identical files.

EXAMPLES

  1. To summarize the differences between the files in two directories:

      dircmp  proj.ver1  proj.ver2

    This command displays a summary of the differences between the directories
    "proj.ver1" and "proj.ver2".  The summary lists separately the files found
    only in one directory or the other, and those found in both.  If a file is
    found in both directories, the dircmp commands notes whether the two files
    are identical.

  2. To show the details of the differences between files:




Processed November 8, 1990        DIRCMP(1,C)                                 1





DIRCMP(1,C)                 AIX Commands Reference                  DIRCMP(1,C)



      dircmp  -d  -s  proj.ver1  proj.ver2

    The -d flag displays a diff listing for each of the differing files found
    in both directories.

    The -s flag suppresses information about identical files.

RELATED INFORMATION

See the following commands:  "cmp" and "diff."













































Processed November 8, 1990        DIRCMP(1,C)                                 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026