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

Re: Fast Replacement

by gurpreetsingh13 (Scribe)
on Jun 14, 2013 at 04:44 UTC ( #1038884=note: print w/ replies, xml ) Need Help??


in reply to Fast Replacement

Assuming you want to replace all occurrences within the file, why not just use perl command line.

perl -pi -e 's/!/\n/g' <filename>


Comment on Re: Fast Replacement
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-07-28 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls