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

Re: [Sheflug] replacing strings in multiple files.



Richard Lowe writes:

 > I dont know how that loop crept in there, I blame the fact its late.
 > 
 > perl -wpi.bak -e 's/old email/new email/g' *

This isn't quite right - don't know why of course, but it appears to
make a backup everytime it handles a file - so every file to be
done gets backed up i-1 times!
ls ./ looks very pretty tho :-)

Baz.
-- 
Barrie J. Bremner

email: baz [at] barriebremner.com | OpenPGP ID: 5164F553

http://barriebremner.com/
[Contact information available at website]

   "Linux? Is that some kind of MacOS?"
      -- BT technical support

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.