SUM(1) COMMAND REFERENCE SUM(1)
NAME
sum - generate checksum and count 1024-byte blocks in a file
SYNOPSIS
sum [ filename... ]
DESCRIPTION
Sum calculates and prints a 16-bit checksum for the named
file, and also prints the number of 1024-byte blocks in the
file. It is typically used to look for bad spots, or to
validate a file communicated over some transmission line.
EXAMPLES
The following example will print the checksum followed by a
block count and the filename for each file in /da/tmp:
sum /da/tmp/*
DIAGNOSTICS
Read error This response is indistinguishable
from end-of-file on most devices;
check the block count.
RETURN VALUE
[NO_ERRS] Command completed without error.
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[P_WARN] A system error occurred. Execution continues.
See intro(2) for more information on system
errors.
SEE ALSO
wc(1).
Printed 10/17/86 1
%%index%%
na:72,96;
sy:168,117;
de:285,350;
ex:635,221;
di:856,279;
rv:1135,414;
se:1549,83;
%%index%%000000000116