tales from the offtopic #13: laser attention span
August 13th, 2007
View original post
Technical mysteries make wastrel hungry. And a hungry wastrel is an angry wastrel. This installation of tales from the offtopic features Falstius, FurryNemesis, and wastrel.
Technorati Tags: hunger, camera, laser cannons, cartoon, silly
View source postFiled under Ubuntu | Comment (0)
Howto Replace multiple file text string in Linux
August 13th, 2007
View original post
If you have a folder with a lot of files in a directory and with a specific string that you want to change you can do it in seconds using grep and perl command line
grep -R –files-with-matches ‘OLDSTRING’ . | sort | uniq | xargs perl -pi~ -e ’s/OLDSTRING/NEWSTRING/’
Where OLDSTRING is the string you want to find and replace with NEWSTRING.
Tags: Replace multiple file text string in Linux, search and replace text in linuxReplace multiple file text string in Linux, search and replace text in linux
Filed under Debian | Comment (0)