Skip to content

Instantly share code, notes, and snippets.

@nekman
Forked from bluefuton/gist:1468061
Last active April 18, 2016 14:30
Show Gist options
  • Save nekman/d0541ed08e0286d8d0e504defd6af65d to your computer and use it in GitHub Desktop.
Save nekman/d0541ed08e0286d8d0e504defd6af65d to your computer and use it in GitHub Desktop.
OS X: replace tabs with spaces in all files using expand
find . -name "*.java" | while read line; do expand -t 2 $line > $line.new; mv $line.new $line; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment