Skip to content

Instantly share code, notes, and snippets.

@brancz
Created July 14, 2014 16:31
Show Gist options
  • Save brancz/9fb3e28ad02f96bce7de to your computer and use it in GitHub Desktop.
Save brancz/9fb3e28ad02f96bce7de to your computer and use it in GitHub Desktop.
expand tabs to 4 spaces for all js files in directory
find . -name '*.js' ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment