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

Re: multiline inplace edit

by Anonymous Monk
on Aug 07, 2003 at 07:32 UTC ( [id://281779]=note: print w/replies, xml ) Need Help??


in reply to multiline inplace edit

I usually do this and I get the same result without a script.

perl -i -0pe 's/foo/bar/g' file1 file2

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found