Last active
December 25, 2015 19:39
-
-
Save mscottford/7029203 to your computer and use it in GitHub Desktop.
Bulk whitespace cleanup: This trims end of line whitespace and ensures that the file ends in a newline. I need to clean this up into a more succinct script. This is basically just a copy and paste from my terminal.
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
| sunstreaker% perl -pi -e 's/ +$//' **/*.rb | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.json | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.js | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.coffee | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.erb | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.sass | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.css | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.haml | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.rabl | |
| sunstreaker% perl -pi -e 's/ +$//' **/*.html | |
| sunstreaker% sed -i '' -e '$a\' **/*.rb | |
| sunstreaker% sed -i '' -e '$a\' **/*.haml | |
| sunstreaker% sed -i '' -e '$a\' **/*.html | |
| sunstreaker% sed -i '' -e '$a\' **/*.css | |
| sunstreaker% sed -i '' -e '$a\' **/*.sass | |
| sunstreaker% sed -i '' -e '$a\' **/*.yml | |
| sunstreaker% sed -i '' -e '$a\' **/*.rabl | |
| sunstreaker% sed -i '' -e '$a\' **/*.json | |
| sunstreaker% sed -i '' -e '$a\' **/*.erb | |
| sunstreaker% sed -i '' -e '$a\' **/*.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment