[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] replacing strings in multiple files.
* Barrie Bremner (baz [at] barriebremner.com) wrote:
> 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 :-)
>
Yeah, it should be *.html, I thought there may be more than .html files
that needed changing, then I realised it could do silly things like
that :-).
I think I've been awake for like 50 hours now. Its starting to show :)
--
|*-------------------=[ Richard Lowe ]=------------------*|
| richlowe [at] btinternet.com UIN: 74724348 |
|*-------------------------------------------------------*|
| Europe has the Kilogram and the Meter. |
| America has the Pound and the Inch. |
| Childrens TV has the Elephant and the Double Decker Bus |
|*-------------------------------------------------------*|
---------------------------------------------------------------------
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.