aboutsummaryrefslogtreecommitdiff
path: root/sbin/md5/md5.1
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-11-07 04:14:55 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-11-07 04:14:55 +0000
commit9e18a3bdd2bc95562a604d1f12b39a9771406b7e (patch)
treef92e92029bef3e465e4ac6c5a78269b2f537aa34 /sbin/md5/md5.1
parentb1d9984e17d26eb674747f08836b82dbc9b3237d (diff)
downloadsrc-9e18a3bdd2bc95562a604d1f12b39a9771406b7e.tar.gz
src-9e18a3bdd2bc95562a604d1f12b39a9771406b7e.zip
Add a new "-r" (right) option that reverses the order a filename and the
hash is printed. This aids visual diffs.
Notes
Notes: svn path=/head/; revision=52949
Diffstat (limited to 'sbin/md5/md5.1')
-rw-r--r--sbin/md5/md5.18
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1
index 7fb415fd0717..5bf3fc605b92 100644
--- a/sbin/md5/md5.1
+++ b/sbin/md5/md5.1
@@ -1,3 +1,4 @@
+.\" $FreeBSD$
.Dd February 14, 1994
.Dt MD5 1
.Os
@@ -6,7 +7,7 @@
.Nd calculate a message-digest fingerprint (checksum) for a file
.Sh SYNOPSIS
.Nm md5
-.Op Fl ptx
+.Op Fl prtx
.Op Fl s Ar string
.Op Ar file ...
.Sh DESCRIPTION
@@ -37,6 +38,11 @@ Print a checksum of the given
.Ar string .
.It Fl p
Echo stdin to stdout and appends the MD5 sum to stdout.
+.It Fl r
+Reverses the format of the output. This helps with visual diffs. Does nothing
+when combined with the
+.Fl stpx
+options.
.It Fl t
Run a built-in time trial.
.It Fl x