Skip to content

Instantly share code, notes, and snippets.

@baltpeter
Created November 4, 2014 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baltpeter/1cf7b399775a715938ac to your computer and use it in GitHub Desktop.
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
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