diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-02 07:04:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-02 07:04:25 +0000 |
commit | 2477d2ef386737d213ec177d10749f0f6a152613 (patch) | |
tree | b13e8f7082126e34779267544b2b8cb5568284df /bin/md5/md5.1 | |
parent | 6af80c3cd7b5a7cf502caa8e01cb7a293eb09b33 (diff) |
use getopt; mph@pobox.com
Diffstat (limited to 'bin/md5/md5.1')
-rw-r--r-- | bin/md5/md5.1 | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/bin/md5/md5.1 b/bin/md5/md5.1 index 5ecd0c07ced..7f21d8c8c37 100644 --- a/bin/md5/md5.1 +++ b/bin/md5/md5.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: md5.1,v 1.3 1997/11/12 14:29:47 provos Exp $ +.\" $OpenBSD: md5.1,v 1.4 1998/01/02 07:04:23 deraadt Exp $ .\" .Dd February 14, 1994 .Dt MD5 1 @@ -8,11 +8,9 @@ .Nd "calculate a message-digest fingerprint (checksum) for a file" .Sh SYNOPSIS .Nm -.Op Fl p -.Op Fl t -.Op Fl x -.Op Fl s Ns Ar string -.Op Ar filename(s) +.Op Fl ptx +.Op Fl s Ar string +.Op Ar file ... .Sh DESCRIPTION .Nm takes as input a message of arbitrary length and produces @@ -28,13 +26,14 @@ encrypted with a private (secret) key under a public-key cryptosystem such as .Em RSA . .Sh OPTIONS -The following four options may be used in any combination, except -that -.Ar filename(s) -must be the last objects on the command line. -.Bl -tag -width "filename(s)" -.It Fl s Ns Ar string -prints a checksum of the given string. +The following four options may be used in any combination and must +precede any files named on the command line. The MD5 +sum of each file listed on the command line is printed after the options +are processed. +.Bl -tag -width Fl +.It Fl s Ar string +prints a checksum of the given +.Ar string . .It Fl p echos stdin to stdout and appends the .Em MD5 @@ -43,9 +42,6 @@ sum to stdout. runs a built-in time trial. .It Fl x runs a built-in test script. -.It Ar filename(s) -prints the checksum for each file. If no files are specified, -standard input is used. .El .Sh SEE ALSO .Xr cksum 1 , |