grep -rl "OLDSTRING" * -R | xargs sed -i 's/OLDSTRING/NEWSTRING/g'

Leave a Reply

Your email address will not be published.

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