Skip to content

Instantly share code, notes, and snippets.

@lrhache
Created July 26, 2016 15:52
Show Gist options
  • Save lrhache/92d8031e8df7f6133257869d775686aa to your computer and use it in GitHub Desktop.
Save lrhache/92d8031e8df7f6133257869d775686aa to your computer and use it in GitHub Desktop.
find string in files recursively without touching each files
grep -rl "oldstring" . | LANG=C LC_ALL=C xargs sed -i '' -e "s/oldstring/newstring/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment