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
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.
9 .\" (C) 2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
12 .\" man pages are NOT obsolete!
13 .\" <ragnar@ragnar-hojland.com>
14 .TH NL 1 "7 October 2002" "GNU textutils 2.1"
16 \fBsha1sum\fR \- calculate and check SHA1 hash checksums
27 .BR sha1sum " [" \-\-help "] [" \-\-version ]
30 outputs or checks the SHA1 checkum of
31 .I FILE s according to FIPS-180-1. If
35 standard input is used.
37 Output format when calculating checksums consists for each input \fIFILE\fR,
38 in a SHA1 sum, a space, a file type character (`*' for binary, ` ' for text)
39 and a filename. This is the format \fB\-\-check\fR expects.
44 Reads the input \fIFILE\fRs in binary mode. This option has no effect on Unix
45 systems, since they don't distinguish between binary and text files. This is
46 the default on DOS platforms.
49 Reads filenames and checksums from the given \fIFILE\fRs, and report wether
50 each file and the corresponding checksum are correct. \fb\-\-check\fR
51 expects the same format \fBsha1sum\fR outputs.
55 sha1sum *.sha1 > checksums.sha1
56 sha1sum \-\-check checksums.sha1
60 Reads the input \fIFILE\fRs in text mode.
63 Warn about badly formatted entries. Only makes sense with \fB\-\-check\fR.
66 Silently exit with a status return code. Warnings or checksum failures are
67 omitted, and errors from operations such as opening are reading are printed.
68 A successful exit code of 0 is only returned is everything is passed and no
69 errors have ocurred. Otherwise a non-zero value is returned.
72 Print a usage message on standard output and exit successfully.
75 Print version information on standard output then exit successfully.
77 Report bugs to bug-textutils@gnu.org.
79 Man page by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>