Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rmgdiff(1x) [debian man page]

RMGDIFF(1x)															       RMGDIFF(1x)

rmgdiff - use almost any graphical file difference browser to recursively view the differences between two directories. SYNOPSIS
rmgdiff [-b] [-d] [-g gui] [-n] dir1 dir2 DESCRIPTION
rmgdiff is an awk script that works in conjunction with almost any graphical file difference browser. It is known to work with mgdiff, tkdiff, and xdiff. Unless I am mistaken, most of the GUI difference viewers (except for emacs) do not have built-in support for recursing down two directo- ries, but diff does. Based on diff's output, rmgdiff decides when to invoke the graphical difference viewer. In addition, rmgdiff also collates diff's output. As soon as a new difference is encountered in a text file, rmgdiff will print to stan- dard output the name of the file that both directories have in common. It will then start the GUI and block until the user exits. As more text files with differences are found, the GUI will be started up again. In the interim, rmgdiff will keep track of differences in binary (non-text) files. It organizes the binary files as executables, shared libraries, static libraries, object files, and other. Only after all the text files have been displayed will rmgdiff report the binary differences. It also keeps track of files and directories that diff reports as being only in one directory or another. rmgdiff organizes these entries by directory. Thus, files in one directory will be reported in one block, and files that are in the other directory will be reported in a different block. In addition to printing the name of the files that are different, rmgdiff defaults to printing the relevant portion of the output from the file command. This has the unfortunate side-effect of slowing things down; however, I find this information to be invaluable. If you're just looking for a fast way to collate diff's output, try piping it into sort instead. COMMAND LINE OPTIONS
-b Sets the basic reporting mode. In basic mode, rmgdiff reports only file names. It does not report the file types involved. -c By default, files relating to CVS are ignored by rmgdiff. If you want to include CVS files, use this option. -d Sets rmgdiff to print way too much debugging information. -g gui Tells rmgdiff which gui you would like to use for viewing differences. By default, mgdiff is used. You can also set $RMGDIFF_GUI in your environment, but it can be overridden with this option. -n rmgdiff will not invoke the gui. This is useful, if you only want to view the collated output. AUTHOR
Paul Serice ( RMGDIFF(1x)

Check Out this Related Man Page

dircmp(1)						      General Commands Manual							 dircmp(1)

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. STANDARDS
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
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
The path name of a directory to be compared. DESCRIPTION
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
[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
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 proj.ver2 The -s option suppresses information about identical files. The -d option displays a diff listing for each of the differing files found in both directories. SEE ALSO
Commands: cmp(1), diff(1) Standards: standards(5) dircmp(1)
Man Page

Featured Tech Videos