Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How to modify words in a line using perl oneliner

by BioLion (Curate)
on Sep 30, 2009 at 11:10 UTC ( #798288=note: print w/ replies, xml ) Need Help??


in reply to Re: How to modify words in a line using perl oneliner
in thread How to modify words in a line using perl oneliner

Maybe also add in boundaries, just in case? Firstly, blast, etc...

perl -ni.bak -e 's/\bfirst\b/last/g; print' one.txt
Just a something something...


Comment on Re^2: How to modify words in a line using perl oneliner
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-07-11 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls