Breaking News

Grep command to search and in place replace

Just a command worth saving.

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

 708 total views,  2 views today

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.