Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://370217]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2017-06-28 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (619 votes). Check out past polls.