OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / original / man1 / sum.1
1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
4 .\"
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
8 .\"
9 .\" (C) 2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU sum man page
12 .\"     man pages are NOT obsolete!
13 .\"     <ragnar@ragnar-hojland.com>
14 .TH SUM 1 "7 October 2002" "GNU textutils 2.1"
15 .SH NAME
16 \fBsum\fR \- print checksum and block counts
17 .SH SYNOPSIS
18 .B sum
19 .RB [ \-rs ]
20 .RB [ \-\-sysv ]
21 .RI [ FILE... ]
22
23 .BR sum " [" \-\-help "] [" \-\-version ]
24 .SH DESCRIPTION
25 .B sum
26 computes and prints a 16 bit checksum for each given
27 .IR FILE .
28 If
29 .I FILE
30 is omitted or if it is a
31 .RB ` \- ',
32 standard input is used for reading.
33
34 .B sum
35 prints the checksum for each \fIFILE\fR followed by the number of
36 blocks in the file (rounded up).  By default if more than one \fIFILE\fR is
37 given, file names are also printed.
38
39 By default, GNU \fBsum\fR computes checksums using an algorithm
40 compatible with BSD \fBsum\fR and prints file sizes in units of 1024-byte
41 blocks.
42 .SH OPTIONS
43 .TP
44 .B \-r
45 Use the default (BSD compatible) algorithm.  This option is
46 included for compatibility with the System V sum.  Unless \fB-s\fR
47 is also given, it has no effect.
48 .TP
49 .B \-s, \-\-sysv
50 Compute checksums using an algorithm compatible with System V
51 sum's default, and print file sizes in units of 512-byte blocks.
52 .TP
53 .B "\-\-help"
54 Print a usage message on standard output and exit successfully.
55 .TP
56 .B "\-\-version"
57 Print version information on standard output then exit successfully.
58 .SH NOTES
59 Report bugs to bug-textutils@gnu.org.
60 .br
61 Man page by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>