Created
April 10, 2014 16:51
-
-
Save qrush/10401517 to your computer and use it in GitHub Desktop.
Replace tabs with 4 spaces, remove leading spaces/tabs for Objective-C .m, .h files
This file contains hidden or 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
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