Find and Replace command for ubuntu/Linux
Find and Replace sed command for Ubuntu/Linux Find and replace the occurrence of particular string in a directory or sub directory using below mention commands:
- Search for the occurrence of the string in directory or sub-directory.
grep -rl . 2> /dev/null
find . -exec sed -i -e 's/foo/bar/g' {} \;
find . -exec sed -i -e 's+http://www.example.com/foo+/bar+g' {} \;
-:END:-
Comments
Post a Comment
There is comment posted on your blog, chandu7929@blogpost.com