//View Tip #846
» Rename many files using find and perl
» Deleting difficult filenames
» Randomized find
» Count files by type
Replace toto by foo in all file found by find.
It make a backup $file.bak
Similar Tips
» Mass-renaming files» Rename many files using find and perl
» Deleting difficult filenames
» Randomized find
» Count files by type
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
find . -name *whatyouwant* -exec perl -pi.bak -e 's/toto/foo/g' {} \;
Replace toto by foo in all file found by find.
It make a backup $file.bak


pure shell solution