Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: doing a search and replace on a large file

by eXile (Priest)
on Apr 14, 2004 at 14:01 UTC ( #345055=note: print w/replies, xml ) Need Help??


in reply to Re: doing a search and replace on a large file
in thread doing a search and replace on a large file

Or, if you want to overwrite the file use the '-i' cmdline option for in-place editting:
perl -pi -e's/pattern here//g' file
Update: reread question, you don't want to overwrite the file, so you don't want this.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://345055]
help
Chatterbox?
[Discipulus]: erix resize your elephant
[erix]: but elephant /are/ big
[Discipulus]: Lady_Aleena micro management of code, micro optimization is a pain, you'll brake working things
[Discipulus]: erix you are right but buy a bigger monitor for me then

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-05-27 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?