Created
April 2, 2014 09:31
-
-
Save jaumebonet/9930916 to your computer and use it in GitHub Desktop.
Substitute something inside a file... for a huge bunch of files
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
find $1 -name '$2' -exec sed -i '$3' '{}' \; | |
# WHERE: | |
# $1 = folder | |
# $2 = file pattern | |
# $2 = substitution pattern (such as: s/\.src\./\./g ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment