[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFD: Essential packages, /, and /usr



On Sun, Jun 16, 2002 at 03:13:23PM -0500, Branden Robinson wrote:
> If you're up to it, however, I would like to challenge you to implement
> /usr/bin/tr(1) in /bin/sed(1).  I few of us on IRC tried several days
> ago to do it, and concluded that it couldn't be done.

Did all of you manage to miss sed's y command?

#!/bin/sh
sed "y/$1/$2/"

Supporting all of tr's options is left as an exercise for the reader :-)

Richard Braakman


-- 
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: