Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dircmp(1) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cmp(1)

diff(1)



dircmp(1)                      DG/UX R4.11MU05                     dircmp(1)


NAME
       dircmp - compare two directories

SYNOPSIS
       dircmp [ -d ] [ -s ] [ -lx ] [ -wn ] dir1 dir2

DESCRIPTION
       Dircmp 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
       filenames common to both directories have the same contents.

       -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.

       -lx    Change the page length of the output to x lines.  The default
              length is 66.

       -wn    Change the width of the output line to n characters.  The
              default width is 72.

   International Features
       Characters from supplementary code sets can be used for directory
       names, and the specified directory can contain files with names using
       supplementary characters.

       Options:

       -wn    The width of the output line n is in columns, not in
              characters or bytes.  Multibyte characters spanning over the
              specified width are not displayed.

EXAMPLES
       dircmp SOURCE SOURCE.2

       Compares the two directories, SOURCE and SOURCE.2.  Prints the names
       of files that are unique to each directory, and identifies files that
       have the same name and identical or different contents.

       dircmp -s SOURCE SOURCE.2

       Compares the files in the directories SOURCE and SOURCE.2.  Lists the
       files that are unique to each directory, and the files with the same
       name but different contents.  Suppresses the printing of file names
       that have identical contents.

       dircmp -d -w80 SOURCE SOURCE.2

       Compares the files in SOURCE and SOURCE.2.  Lists the files that are
       unique to each directory, files with the same name but identical or
       different contents, and creates scripts to make different files
       identical.  dircmp truncates the output lines so they are only 80
       characters long.

DIAGNOSTICS
       Exit code is 0 on successful completion, and >0 if an error occurs.
       (Differences in directory contents are not considered errors.)

SEE ALSO
       cmp(1), diff(1).


Licensed material--property of copyright holder(s)

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