aboutsummaryrefslogtreecommitdiff
path: root/sbin/md5/md5.1
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/md5/md5.1')
-rw-r--r--sbin/md5/md5.124
1 files changed, 9 insertions, 15 deletions
diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1
index cadc2066af18..676e4a00c555 100644
--- a/sbin/md5/md5.1
+++ b/sbin/md5/md5.1
@@ -6,11 +6,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 Ns Pq 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
@@ -29,24 +27,20 @@ in a secure manner before being encrypted with a private
key under a public-key cryptosystem such as
.Em RSA .
.Pp
-The following four options may be used in any combination, except
-that
-.Ar filename Ns Pq s
-must be the last objects on the command line.
+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 Ns Ar string
+.It Fl s Ar string
prints a checksum of the given
-.Dq string .
+.Ar string .
.It Fl p
echos stdin to stdout and appends the MD5 sum to stdout.
.It Fl t
runs a built-in time trial.
.It Fl x
runs a built-in test script.
-.It Ar filename Ns Pq s
-prints a checksum
-.Pq s
-for each of the files.
.El
.Sh SEE ALSO
.Xr cksum 1