Created
November 4, 2014 19:34
-
-
Save baltpeter/1cf7b399775a715938ac to your computer and use it in GitHub Desktop.
Replace all occurrences of `wrong` with `right` in all files matching `*.txt` in a directory
This file contains 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
sed -i '' 's/wrong/right/g' *.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment