Skip to content

Instantly share code, notes, and snippets.

@im6e
Created February 26, 2014 07:10
Show Gist options
  • Save im6e/9225054 to your computer and use it in GitHub Desktop.
Save im6e/9225054 to your computer and use it in GitHub Desktop.
sed w/ grep on Mac
grep -lr {before} * | egrep -v "{exclude_file_1}|{exclude_file_2}|{exclude_file_3}" | xargs sed -i '' -e 's/{before}/{file}/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment