Last active
March 27, 2019 01:40
-
-
Save peacefixation/c05284b04754df442d640e327ad7ec97 to your computer and use it in GitHub Desktop.
Find files containing text and replace the text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /some/path -type f -exec grep 'find this text' -l {} \; -exec sed -i '' 's/find this text/replace with this text/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment