Re: RFD: Essential packages, /, and /usr
On Mon, Jun 17, 2002 at 12:16:20AM +0200, Tollef Fog Heen wrote:
> * Richard Braakman
>
> | 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/"
>
> I'm not saying I'm a sed guru, but
>
> : tfheen@arabella ~ > echo ABCD | tr A-Z a-z
> abcd
> : tfheen@arabella ~ > echo ABCD | sed 'y/A-Z/a-z/'
> aBCD
>
> doesn't seem to do the same at all for me.
stephen:~$ echo ABC | sed 'y/ABCD/abcd/'
abc
Sure it does. It just has different syntax :)
Stephen
--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to:
- References:
- Re: RFD: Essential packages, /, and /usr
- From: Anthony Towns <aj@azure.humbug.org.au>
- Re: RFD: Essential packages, /, and /usr
- From: Branden Robinson <branden@debian.org>
- Re: RFD: Essential packages, /, and /usr
- From: ben <benfoley@rcn.com>
- Re: RFD: Essential packages, /, and /usr
- From: Manoj Srivastava <srivasta@debian.org>
- Re: RFD: Essential packages, /, and /usr
- From: Branden Robinson <branden@debian.org>
- Re: RFD: Essential packages, /, and /usr
- From: Richard Braakman <dark@xs4all.nl>
- Re: RFD: Essential packages, /, and /usr
- From: Tollef Fog Heen <tollef@add.no>