Skip to content

Instantly share code, notes, and snippets.

@fakemelvynkim
Created May 13, 2014 18:31
Show Gist options
  • Save fakemelvynkim/2d4714804607f43bb810 to your computer and use it in GitHub Desktop.
Save fakemelvynkim/2d4714804607f43bb810 to your computer and use it in GitHub Desktop.
Tabs to 4 spaces
# replace tabs with 4 spaces in .m and .h files
find . -name "*.[mh]" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done
find . -name "*.[mh]" | while read line; do git stripspace < $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