Skip to content

Instantly share code, notes, and snippets.

@jaumebonet
Created April 2, 2014 09:31
Show Gist options
  • Save jaumebonet/9930916 to your computer and use it in GitHub Desktop.
Save jaumebonet/9930916 to your computer and use it in GitHub Desktop.
Substitute something inside a file... for a huge bunch of files
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