Skip to content

Instantly share code, notes, and snippets.

@naganowl
Created September 13, 2019 23:33
Show Gist options
  • Save naganowl/8b9d95299dfde279fe7e583a43fd51d5 to your computer and use it in GitHub Desktop.
Save naganowl/8b9d95299dfde279fe7e583a43fd51d5 to your computer and use it in GitHub Desktop.
Replace Coffee w/ JS in all lines except if it contains `..`
grep -lr \.coffee app/assets/ | xargs sed -i '' -e '/\.\./!s/coffee/js/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment