Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 1999 01:32:35 -0500
From:      Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To:        "David E. O'Brien" <obrien@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/md5 md5.1 md5.c
Message-ID:  <19991108013235.A53406@mad>
In-Reply-To: <199911070414.UAA01851@freefall.freebsd.org>; from David E. O'Brien on Sat, Nov 06, 1999 at 08:14:56PM -0800
References:  <199911070414.UAA01851@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 06, 1999 at 08:14:56PM -0800, David E. O'Brien wrote:
>
>   Log:
>   Add a new "-r" (right) option that reverses the order a filename and the
>   hash is printed.  This aids visual diffs.

I always used

=2E/md5 * | awk '{print $1 " " $4 " " gensub ("^\\(|\\)$", "", "g", $2)}'

to produce the same effect......

Or,

=2E/md5 * | perl -pe 's/\((.+)\) \=3D (.*)/$2 $1/'

When I was in a more radical mood.  If I had a little cpu to burn and
wanted to impress the locals, I might even have been so brash as to use

for i in $(./md5 * | cut -f 1,2,4 -d ' ' | sed -e 's/ (/=08/' -e 's/) /=08/=
');
 do (set $(echo $i | sed -e 's/^H/ /g') ; echo $1 $3 $2) ; done


I'm glad I can now remember to use the -r switch instead.


--=20
Signature withheld by request of author.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991108013235.A53406>