[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] new version hook script examples
From: |
Mikhael Goikhman |
Subject: |
Re: [Gnu-arch-users] new version hook script examples |
Date: |
Wed, 10 Nov 2004 08:23:27 +0000 |
User-agent: |
Mutt/1.4.2.1i |
On 10 Nov 2004 07:54:32 +0000, Stig Brautaset wrote:
>
> Just use the -e flag several times...
>
> perl -e "..." -e "..."
I would not suggest this for newbies, this joins the "..." strings using
a newline, so one should still end the statements with a semicolon.
Just use a single -s and any whitespace (including newlines) you like:
perl -pi -e 's/old1/new1/g; s/old2/new2/gi;' file1 file2
Regards,
Mikhael.