Skip to content

Instantly share code, notes, and snippets.

@baltpeter baltpeter/script.sh
Created Nov 4, 2014

Embed
What would you like to do?
Replace all occurrences of `wrong` with `right` in all files matching `*.txt` in a directory
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
You can’t perform that action at this time.