Created
August 12, 2014 02:04
-
-
Save kballenegger/c398a3d2be417a54716e to your computer and use it in GitHub Desktop.
4-space -> 2-space indentation in entire codebase
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
find . -name '*.js*' -exec bash -c "ruby -ne 'puts \$_.gsub(/^(( )+)/) {|m| (m.length/2).times.map{|_|\" \"}.join }' <{} >{}.bk && rm -f {} && mv {}.bk {}" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment