Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Best way to edit a file?

by jesuashok (Curate)
on Apr 02, 2007 at 07:10 UTC ( [id://607766]=note: print w/replies, xml ) Need Help??


in reply to Best way to edit a file?

perl -i -pe 's/OLD/NEW/g' <file_name>
there are lot of unix utilities are there to do the same. ( sed, awk , so on )


hmmm ....let me think what did I said

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-23 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found