Created
May 13, 2014 18:31
-
-
Save fakemelvynkim/2d4714804607f43bb810 to your computer and use it in GitHub Desktop.
Tabs to 4 spaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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