sum(1) CLIX sum(1)
NAME
sum - Displays checksum and block count of a file
SYNOPSIS
sum [-pr] file
FLAGS
-pr Causes an alternate algorithm to be used in computing the checksum.
DESCRIPTION
The sum command calculates and displays a 16-bit checksum for the named
file, and also displays the number of blocks in the file. It is typically
used to look for bad spots, or to validate a file communicated over some
transmission line.
EXAMPLES
1. To display the checksum and block count for filea and fileb:
sum filea fileb
2. To display the checksum for data taken from stdin using the alternate
checksum computation, enter this command line:
sum -pr
DIAGNOSTICS
Read error Indistinguishable from end-of-file on most devices; check the
block count.
EXIT VALUES
The sum command exits with a nonzero value if a read error occurs.
RELATED INFORMATION
Commands: wc(1)
2/94 - Intergraph Corporation 1