I just stumbled across a neat idea using perl to replace the content in files To replace all occurances of a string: find ./ -name “*.txt” | xargs perl -pi -e ‘s/stringtoreplace/replacementstring/g’ for every of these examples you can also use sed find ./ -name “*.txt” | xargs sed -i ‘s/stringtoreplace/replacementstring/’ or rpl rpl stringtoreplace […]
Read More
simple
April 13, 2010
Linux, Terminal.app
No Comment