Skip to content

Instantly share code, notes, and snippets.

@danhper
Created August 26, 2015 09:34
Show Gist options
  • Save danhper/361f96103d8fd7f27179 to your computer and use it in GitHub Desktop.
Save danhper/361f96103d8fd7f27179 to your computer and use it in GitHub Desktop.
Add 'use strict' to all js files
find $DIR -iname '*.js' -exec sed -i "1 i\'use strict';\n" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment