find and replace in all files in linux

find and replace in all files in linux

Be careful while using this command

grep -rl $oldstring /path/to/folder | xargs sed -i s@$oldstring@$newstring@g
Published:
comments powered by Disqus