Skip to content

Instantly share code, notes, and snippets.

@baltpeter
Created November 4, 2014 19:34
Show Gist options
  • 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