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/
Subscribe to:
Post Comments (Atom)
Get a new code everyday and enjoy with it.
No comments:
Post a Comment