home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 October / PCO1097.ISO / FilesBBS / FREI / UTLOS2.ARJ / UTLOS2.ZIP / Doc / CRC.DOC < prev    next >
Encoding:
Text File  |  1997-06-01  |  2.4 KB  |  68 lines

  1. $Id: CRC.DOC 1.2 1997/06/02 00:25:45 brian Exp $
  2.  
  3.                       crc.doc : The 'crc' command
  4.                           By:  Brian E. Yoder.
  5.  
  6.         (c) Copyright International Business Machines Corporation 1997
  7.         All rights reserved.
  8.  
  9. The crc command is used to record the length and 16-bit CRC value (or,
  10. optionally, the 32-bit CRC value) for one or more files.
  11.  
  12. The code used to calculate the 16-bit CRC value for an individual file
  13. was developed at IBM Austin, Texas, by Jim Czenkusch.  The code to
  14. calculate the 32-bit CRC has enhancements to pre- and post-condition
  15. each value so that it is compatible with the 32-bit CRC value generated
  16. by PKWARE's PKZIP and Info-ZIP's zip programs.
  17.  
  18. ========================================================================
  19. Command syntax
  20. ========================================================================
  21.  
  22.         crc [ -s ] [ -l ] fspec ...
  23.  
  24. The program gets the length and calculates the CRC value for each file
  25. that matches the given file specification(s).  If -s is specified, then
  26. the program recursively descends into subdirectories looking for files
  27. that match the file specification(s).
  28.  
  29. If -l (letter el) is specified, then crc generates 32-bit (long) CRCs
  30. that are compatible with those generated by PKZIP.  The default is to
  31. generate 16-bit CRCs.
  32.  
  33. Each file specification consists of some combination of drive, path, and
  34. filename.  The filename may contain AIX shell pattern-matching
  35. characters.  See the pattern.doc file for a description of filename
  36. pattern matching.
  37.  
  38. For each matching file, the crc program writes one line to standard
  39. output as follows:
  40.  
  41.         length  CRC  filename
  42.  
  43. The length is displayed in decimal format.  The CRC is displayed in
  44. hexadecimal format with a leading '0x'.
  45.  
  46. ========================================================================
  47. Examples:
  48. ========================================================================
  49.  
  50. 1. I entered the following command on my system:
  51.  
  52.                 crc *.h \*.sys
  53.  
  54.    It produced the following output:
  55.  
  56.                 3159  0xD65B  BMTBL.H
  57.                10780  0x5495  UTIL.H
  58.                15473  0x064B  REGEXP.H
  59.                  178  0x4E87  \CONFIG.SYS
  60.  
  61. 2. I entered the following command on my system:
  62.  
  63.                 crc -l crc.doc
  64.  
  65.    It produced the following output:
  66.  
  67.                 2409  0x070E5D3F  CRC.DOC
  68.