Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: changing text in multiple files

by bassplayer (Monsignor)
on Jun 28, 2004 at 15:13 UTC ( #370217=note: print w/ replies, xml ) Need Help??


in reply to changing text in multiple files

perl -p -i.bak -e 's/2003/2004/g' *.html

This will edit all files in place, after making a backup copy called <filename>.bak.

bassplayer


Comment on Re: changing text in multiple files
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-09-18 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls