Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Favourite One-liners?

by Tanktalus (Canon)
on Jun 28, 2005 at 01:35 UTC ( #470442=note: print w/ replies, xml ) Need Help??


in reply to Favourite One-liners?

perl -pi~ -e 's/foo/bar/' *.xyz

I often have to go through a list of files and make minor tweaks to them. And we're talking about 150-200 files. It blows my coworkers' minds away that I can do search&replace that quickly.

IIRC, this is actually what got me started on perl in the first place. I am waaaay too lazy.


Comment on Re: Favourite One-liners?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-09-18 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (119 votes), past polls