home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
utlos2.zip
/
Doc
/
CRC.DOC
< prev
next >
Wrap
Text File
|
1997-10-24
|
3KB
|
70 lines
$Id: CRC.DOC 1.3 1997/10/25 02:11:00 brian Exp $
crc.doc : The 'crc' command
By: Brian E. Yoder.
(c) Copyright International Business Machines Corporation 1997
All rights reserved.
The crc command is used to record the length and 16-bit CRC value (or,
optionally, the 32-bit CRC value) for one or more files.
The code used to calculate the 16-bit CRC value for an individual file
was developed at IBM Austin, Texas, by Jim Czenkusch. The code to
calculate the 32-bit CRC has enhancements to pre- and post-condition
each value so that it is compatible with the 32-bit CRC value generated
by PKWARE's PKZIP and Info-ZIP's zip programs.
========================================================================
Command syntax
========================================================================
crc [ -s ] [ -l ] fspec ...
The program gets the length and calculates the CRC value for each file
that matches the given file specification(s). If -s is specified, then
the program recursively descends into subdirectories looking for files
that match the file specification(s).
If -l (letter el) is specified, then crc generates 32-bit (long) CRCs
that are compatible with those generated by PKZIP. The default is to
generate 16-bit CRCs.
Each file specification consists of some combination of drive, path, and
filename. The filename may contain AIX shell pattern-matching
characters. See the pattern.doc file for a description of filename
pattern matching.
For each matching file, the crc program writes one line to standard
output as follows:
length CRC "filename"
The length is displayed in decimal format. The CRC is displayed in
hexadecimal format with a leading '0x'. The filename is enclosed in
double quotes in case it contains embedded spaces or other puncutation.
========================================================================
Examples:
========================================================================
1. I entered the following command on my system (a very long time ago, I
might add!):
crc *.h \*.sys
It produced the following output:
3159 0xD65B BMTBL.H
10780 0x5495 UTIL.H
15473 0x064B REGEXP.H
178 0x4E87 \CONFIG.SYS
2. I entered the following command on my system:
crc -l crc.doc
It produced the following output:
2409 0x070E5D3F CRC.DOC