On Fri, Apr 04, 2008 at 01:07:10AM -0700, Parvinder Bhasin wrote:

Hi!

>        *perl -p -i -e 's/$OLD/$NEW/' $file  <--------------tried using perl 
> but still the file didn't change with the incremented serial number
>        sed 's/$OLD/$NEW/' $file <-----------------I know this will only 
> search and replace but how do I do in in-place so that the file itself is 
> modified.*

echo ",s/$OLD/$NEW/\nw" | ed -s $file

-- 
rix
http://www.ripe.net/perl/[EMAIL PROTECTED]

Reply via email to