Two bugs. First, ttloop() was not reacting to an EOF on the
[unix-history] / usr / src / old / sum / sum.1
CommitLineData
81e36857 1.\" @(#)sum.1 6.1 (Berkeley) %G%
92ec8e44 2.\"
81e36857 3.TH SUM 1 ""
92ec8e44
KM
4.AT 3
5.SH NAME
6sum \- sum and count blocks in a file
7.SH SYNOPSIS
8.B sum
9file
10.SH DESCRIPTION
11.I Sum
12calculates and prints a 16-bit checksum for the named file,
13and also prints the number of blocks in the file.
14It is typically used to look for bad spots, or
15to validate a file communicated over
16some transmission line.
17.SH "SEE ALSO"
18wc(1)
19.SH DIAGNOSTICS
20`Read error'
09ac6ac9 21is indistinguishable from end of file on
92ec8e44 22most devices; check the block count.