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