27 Apr
2001
27 Apr
'01
20:40
Sorry, I could not resist:
find . -type f -exec perl -ni.bak e 's/old text string/new string of text/g; print' {} \;
$ find . -type f -exec perl -pe 's/old_string/new_string/g' {} \; is even shorter. The -p switch puts a loop-and-print around the command. The -i.bak switch is only needed when you want backup-files. As always in perl, there is more than one way to do it. Regards, Cees.