Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Search and Replace Entire Directories

by ask (Pilgrim)
on Nov 19, 2001 at 16:43 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2021-07-28 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?