Commit | Line | Data |
---|---|---|
75b171ba CL |
1 | .\" Copyright (c) 1991 Regents of the University of California. |
2 | .\" All rights reserved. | |
92ec8e44 | 3 | .\" |
75b171ba CL |
4 | .\" %sccs.include.redist.roff% |
5 | .\" | |
6 | .\" @(#)sum.1 6.2 (Berkeley) %G% | |
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 | |
18 | The | |
19 | .Nm sum | |
20 | utility calculates and writes to standard output a | |
21 | checksum (16 bit CRC) for each input file, | |
22 | and also writes to the standard output the number of blocks | |
23 | in each file. | |
24 | .Pp | |
25 | The following operand is available: | |
26 | .Bl -tag -width file | |
27 | .It Ar file | |
28 | The pathname of the | |
29 | .Ar file | |
30 | to checksum. | |
31 | If no file operands are specified, the | |
32 | standard input is used. | |
33 | .El | |
34 | .Sh SEE ALSO | |
35 | .Xr wc 1 | |
36 | .Sh DIAGNOSTICS | |
37 | The | |
38 | .Nm sum | |
39 | utility exits zero on success, | |
40 | and >0 if an error occurs. | |
41 | .Pp | |
42 | End-of-file may return a read-error. | |
43 | .Sh HISTORY | |
44 | A | |
45 | .Nm | |
46 | command appeared in | |
47 | .At v7 . |