Grep command to search and in place replace

Just a command worth saving.

  grep -rl ‘findmatch’ filename | xargs sed -i ‘s/original/replacement/g’

 1,386 total views,  2 views today