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

Re^2: One-line shell script for find and replace

by Skeeve (Parson)
on Oct 05, 2005 at 07:53 UTC ( [id://497511]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -pi -w -e 's/find/replace/g' `find . -name \*.txt`
    
  2. or download this
    find . -name \*.txt -print0 | xargs -0 perl -pi -w -e 's/find/replace/
    +g'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2024-03-28 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found