Skip to content

Instantly share code, notes, and snippets.

@bprosnitz
Created March 12, 2015 00:32
Show Gist options
  • Save bprosnitz/28b4e2f9c0ec926d1d4e to your computer and use it in GitHub Desktop.
Save bprosnitz/28b4e2f9c0ec926d1d4e to your computer and use it in GitHub Desktop.
Replace regex match in files
for pp in $(grep -r "INITIAL" . | awk -F':' '{print $1}' |sort | uniq); do sed -i 's/INITIAL/FINAL/g' $pp; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment