Skip to content

Instantly share code, notes, and snippets.

@petehouston
Created October 29, 2014 11:14
Show Gist options
  • Save petehouston/d87bd48ab17e1d0392ef to your computer and use it in GitHub Desktop.
Save petehouston/d87bd48ab17e1d0392ef to your computer and use it in GitHub Desktop.
Convert tabs to spaces
#!/bin/sh
# replace *.java by your language extension
find . -name '*.java' ! -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