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 4/6/89 1
%%index%%
na:216,112;
sy:328,161;
de:489,406;
ex:895,250;
di:1145,275;
rv:1420,458;
se:1878,114;
%%index%%000000000120