BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / sum.0
SUM(1) UNIX Programmer's Manual SUM(1)
N\bNA\bAM\bME\bE
sum - sum and count blocks in a file
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
s\bsu\bum\bm file
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bS_\bu_\bm calculates and prints a 16-bit checksum for the named
file, and also prints 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.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
wc(1)
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
`Read error' is indistinguishable from end of file on most
devices; check the block count.
Printed 7/9/88 April 29, 1985 1