Skip to content

Instantly share code, notes, and snippets.

@brev
Last active January 10, 2019 04:52
Show Gist options
  • Save brev/d3aafdc5b05b05a90a1f8a9a364fc3e0 to your computer and use it in GitHub Desktop.
Save brev/d3aafdc5b05b05a90a1f8a9a364fc3e0 to your computer and use it in GitHub Desktop.
Text replacement recursive in subtree.
#!/bin/sh
find /search/path/ -type f -not -path '*/.git/*' | LANG=C LC_ALL=C LC_CTYPE=C xargs sed -i '' -e 's/before/after/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment