This is one of most used command in linux to replace the string in files.
find . -name "*.cpp" | xargs grep -l stringtofind | xargs sed -i s/stringtofind/stringtoreplace/
Showing posts with label file string replace. Show all posts
Showing posts with label file string replace. Show all posts
Monday, August 6, 2007
Subscribe to:
Posts (Atom)