Skip to content

Instantly share code, notes, and snippets.

@thomseddon
Created January 20, 2015 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomseddon/f58d57b85ce4c1a570b4 to your computer and use it in GitHub Desktop.
Save thomseddon/f58d57b85ce4c1a570b4 to your computer and use it in GitHub Desktop.
Recursively convert tabs to 2 spaces
find . -name '*' ! -type d -exec bash -c 'expand -t 2 "$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