SUM(C) UNIX System V
Name
sum - calculates checksum and counts blocks in a file
Syntax
sum [ -r ] file
Description
sum calculates and prints a 16-bit checksum for the named
file, and also prints the number of 512-byte blocks in the
file. It is typically used to look for bad spots, or to
validate a file communicated over a transmission line. The
option -r causes an alternate algorithm to be used in
computing the checksum.
See Also
cmchk(C), machine(HW), wc(C)
Diagnostics
``Read error'' is indistinguishable from end-of-file on most
devices; check the block count.
Standards Conformance
sum is conformant with:
AT&T SVID Issue 2, Select Code 307-127;
and The X/Open Portability Guide II of January 1987.
(printed 8/24/89) SUM(C)