Author: admin
~ 03/12/09
grep will do a first find and return the matched file names
xargs will pass each file name with its path to sed
and obviously sed will edit inline and replace the contents
grep -rl “oldword” ./ | xargs sed -i ‘s/oldword/newword/’
Posted in: technical | | Comments Off
No Comments
No comments yet.
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.