Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cmp(1)

diff(1)

dircmp(1)  —  Commands

OSF

NAME

dircmp − Compares two directories

SYNOPSIS

dircmp [-d] [-s] directory1 directory2

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

FLAGS

-dDisplays for each common filename the differing contents of the two files, if any.  The display format is the same as that of the diff command. 

-sDoes not list the names of identical files. 

DESCRIPTION

First, dircmp compares the filenames in each directory.  When the same filename 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 flag, dircmp also lists files that have both identical names and identical contents. 

EXAMPLES

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

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

dircmp  -d  -s  proj.ver1  proj.ver2

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

NOTES

In many cases, diff -r, rather than dircmp, is preferred. 

RELATED INFORMATION

Commands:  cmp(1), diff(1). 

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