Created
October 21, 2016 17:23
-
-
Save claytantor/aff4dce37fa48ceef17010d015127263 to your computer and use it in GitHub Desktop.
Recursively find and replace in files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively find and replace in files | |
find . -name "*.txt" -print0 | xargs -0 sed -i '' -e 's/foo/bar/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment