[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inplace - s shell script for you
From: |
Tim Waugh |
Subject: |
Re: inplace - s shell script for you |
Date: |
Sat, 15 May 2004 00:24:40 +0100 |
User-agent: |
Mutt/1.4.1i |
On Fri, May 14, 2004 at 08:32:34PM +0200, Jim Meyering wrote:
> Victor Porton <address@hidden> wrote:
> > I think you should include this my script in GNU Core Utilities or an other
> > GNU package. Don't allow it to be lost as it is a very handy thing.
> ...
> > echo "Performs inplace editing of a file."
> ...
> > echo 'Example: inplace -v file.txt "sed -e s/John/Paul/g \$IN > \$OUT"'
>
> Thanks, but I think Perl is just fine for this sort of task:
>
> perl -pi.bak -e s/John/Paul/g file.txt
Come to that, so is GNU sed when you use its '--in-place' option.
Tim.
*/
pgpRv34uP8Hdd.pgp
Description: PGP signature