Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Directory Recursion from the Command Line?

by crouchingpenguin (Priest)
on Apr 15, 2003 at 13:08 UTC ( [id://250562]=note: print w/replies, xml ) Need Help??


in reply to Directory Recursion from the Command Line?

You could use a quick shell like:

for file in `find . -type f -print`;do cp $file $file~ ; cat $file |se +d -e 's/this/that/' > $file.new; mv $file.new $file;done

cp
----
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."

Log In?
Username:
Password:

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

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

    No recent polls found