Just a command worth saving.

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

Leave a Reply

Your email address will not be published. Required fields are marked *