Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Search and Replace Entire Directories

by ask (Pilgrim)
on Nov 19, 2001 at 16:43 UTC ( [id://126245]=note: print w/replies, xml ) Need Help??


in reply to Search and Replace Entire Directories

you should try something like
find ./ -type f | xargs perl -i.bak -pe 's!replace!with this!g';
next time. =)

 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/   !try; do();

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found