From owner-cvs-all Sun Nov 7 22:35: 9 1999 Delivered-To: cvs-all@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id 20C3D14E4D; Sun, 7 Nov 1999 22:35:02 -0800 (PST) (envelope-from vanderh@ecf.toronto.edu) Received: from localhost.nowhere (ppp2057.on.bellglobal.com [206.172.235.137]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id BAA11241; Mon, 8 Nov 1999 01:39:06 -0500 (EST) Received: (from tim@localhost) by localhost.nowhere (8.9.3/8.9.1) id BAA54704; Mon, 8 Nov 1999 01:32:36 -0500 (EST) (envelope-from tim) Date: Mon, 8 Nov 1999 01:32:35 -0500 From: Tim Vanderhoek To: "David E. O'Brien" 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> References: <199911070414.UAA01851@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Mailer: Mutt 0.95i In-Reply-To: <199911070414.UAA01851@freefall.freebsd.org>; from David E. O'Brien on Sat, Nov 06, 1999 at 08:14:56PM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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