Last active
August 29, 2015 14:15
-
-
Save seliverstov-maxim/5a8185f16db8ec532851 to your computer and use it in GitHub Desktop.
Find and replace by project
This file contains hidden or 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
| grep -rl --include="*.php" "old_word" ./ | xargs sed -i 's/old_word/new_word/g' | |
| // grep with OR condition and sort result | |
| grep 'foo\|bar' | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment