Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
There's more than one way to do things
 
PerlMonks  

(jeffa) Re: Can you teach a new dog an old trick?

by jeffa (Chancellor)
on Jul 28, 2001 at 20:39 UTC ( #100566=note: print w/ replies, xml ) Need Help??


in reply to Can you teach a new dog an old trick?

perl -i.bak -pe 's/string1/string2/g' *.htm
This changes all occurrences of the literal string, 'string1' with 'string2' in all .htm files and makes backups at the same time.

jeffa


Comment on (jeffa) Re: Can you teach a new dog an old trick?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://100566]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-04-25 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (579 votes), past polls