home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff281.lzh / DiffDir / DiffDir.DOC < prev    next >
Text File  |  1989-11-20  |  3KB  |  66 lines

  1.  
  2. Program:
  3.     DiffDir - List directory differences.
  4.  
  5.     (C)Copyright 1988 by Mark R. Rinfret
  6.     All Rights Reserved.
  7.     This software may be freely distributed for non-profit use only.
  8.     You are free to make changes and redistribute this program as
  9.     long as the source is distributed and this notice is kept intact.
  10.  
  11. Version:
  12.     1.1 -07/04/89- Added selected attribute test suppression.
  13.     1.0 -01/05/89- Initial release.
  14.  
  15. Author:
  16.     Mark R. Rinfret
  17.     348 Indian Ave.
  18.     Portsmouth, RI 02871
  19.     401-846-7639
  20.  
  21. Usage:
  22.     DiffDir [>listpath] [-C] [-D] [-S] [-c] [-s scriptfile] dirname1 dirname2
  23.         where
  24.             >listpath redirects standard output to a file or device
  25.             -C suppresses comparison of file comments
  26.             -D suppresses comparison of file dates
  27.             -S suppresses comparison of file sizes (would you want to?)
  28.             -c ignores filename letter case differences (abc = ABC)
  29.             -s generates a script file for batch file comparisons
  30.  
  31. Description:
  32.  
  33.     DiffDir compares the contents of two directories, outputting a
  34.     list of differences to standard output.  The following conditions
  35.     will generate diagnostic output:
  36.  
  37.         1. File or directory present in one hierarchy but not the other
  38.         2. File modification dates differ
  39.         3. File flags (protection, archive, script, etc.) differ
  40.         4. File comments differ
  41.         5. File sizes differ
  42.  
  43.     The -c option will allow DiffDir to ignore filename differences which
  44.     involve different letter case (abc vs. ABC).  The -s option will cause
  45.     a line of the form
  46.  
  47.         %COMPARE% path1 path2
  48.  
  49.     to be output to a special script file each time files with similar
  50.     names are found to have different sizes.  At this time, it is up to
  51.     the user to edit the script file, substituting the appropriate
  52.     command name for the %COMPARE% meta-string.  For instance, "diff -h"
  53.     might be substituted for text file comparisons, "cmp" for binary
  54.     files.  A smarter version of this program would more than likely
  55.     do the file content differentiation and apply the correct command
  56.     (defined by default, environment variable or command line parameter)
  57.     to the output string.  Any takers?
  58.  
  59.     I wrote DiffDir out of my own need after repeatedly going through the
  60.     drill of listing directories stored on my hard disk and floppy disk
  61.     archives of the same directory to determine which was more current.
  62.     Hopefully this program will save someone else the aggravation.
  63.  
  64.     Mark Rinfret
  65.  
  66.