1.\" Copyright (c) 1991 Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.roff% 5.\" 6.\" @(#)sum.1 6.2 (Berkeley) 07/15/92 7.\" 8.Dd 9.Dt SUM 1 10.Os 11.Sh NAME 12.Nm sum 13.Nd calculate file checksums and block counts 14.Sh SYNOPSIS 15.Nm sum 16.Ar file 17.Sh DESCRIPTION 18The 19.Nm sum 20utility calculates and writes to standard output a 21checksum (16 bit CRC) for each input file, 22and also writes to the standard output the number of blocks 23in each file. 24.Pp 25The following operand is available: 26.Bl -tag -width file 27.It Ar file 28The pathname of the 29.Ar file 30to checksum. 31If no file operands are specified, the 32standard input is used. 33.El 34.Sh SEE ALSO 35.Xr wc 1 36.Sh DIAGNOSTICS 37The 38.Nm sum 39utility exits zero on success, 40and >0 if an error occurs. 41.Pp 42End-of-file may return a read-error. 43.Sh HISTORY 44A 45.Nm 46command appeared in 47.At v7 . 48