Last active
August 29, 2015 13:56
-
-
Save jamesfzhang/8900040 to your computer and use it in GitHub Desktop.
Remove trailing white spaces from ruby, haml, coffee, sass and erb files in current directory.
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 *.rb -or -name *.haml -or -name *.coffee -or -name *.sass -or -name *.erb \) -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment