*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> dircmp (1)              



NAME    [Toc]    [Back]

       dircmp - Compares two directories

SYNOPSIS    [Toc]    [Back]

       dircmp [-d] [-s] directory1 directory2

       The  dircmp  command reads directory1 and directory2, compares
 their contents, and writes the results  to  standard

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       dircmp:  XCU5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

OPTIONS    [Toc]    [Back]

       Displays  for each common file name the differing contents
       of the two files, if any.  The display format is the  same
       as  that  of the diff command.  Does not list the names of
       identical files.

OPERANDS    [Toc]    [Back]

       The path name of a directory to be compared.

DESCRIPTION    [Toc]    [Back]

       First, dircmp compares the file names in  each  directory.
       When  the  same file name appears in both, dircmp compares
       the contents of the two files.

       In the output, dircmp  lists  the  files  unique  to  each
       directory.   It  then lists the files with identical names
       but different contents.   If  entered  without  a  option,
       dircmp also lists files that have both identical names and
       identical contents.

NOTES    [Toc]    [Back]

       [Tru64 UNIX]  In many cases, diff -r, rather than  dircmp,
       is  preferred.   The dircmp command is marked LEGACY.  The
       diff -r command should be used instead.

EXAMPLES    [Toc]    [Back]

       To summarize the differences  between  the  files  in  two
       directories, enter: dircmp  proj.ver1  proj.ver2

              This  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  the file is found in both directories, the file
              is listed.  If the files are identical, dircmp displays
 identical; otherwise, dircmp displays different.
   To  show  the  details  of  the  differences
              between  files,  enter:  dircmp   -d  -s  proj.ver1

              The -s option suppresses information about  identical
  files.  The  -d option displays a diff listing
              for each of  the  differing  files  found  in  both

SEE ALSO    [Toc]    [Back]

       Commands:  cmp(1), diff(1)

       Standards:  standards(5)

[ Back ]
 Similar pages
Name OS Title
dxfileshare Tru64 Exports local directories and mounts directories from the network
diff3 Tru64 Compares three files
cmp Tru64 Compares two files
pxfucompare IRIX Compares unsigned integers
difftime64 Tru64 compares time values
difftime Tru64 compares time values
diff Tru64 Compares text files
comm Tru64 Compares two sorted files.
sdiff Tru64 Compares two files and displays the differences in
bcmp Tru64 General: Compares two byte strings
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service