Created
April 25, 2011 04:00
-
-
Save jonseymour/940136 to your computer and use it in GitHub Desktop.
clean trailing whitespace
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
clean_ws() | |
{ | |
[ "$1" ] || exit 1; | |
sed "s/ *\$//" < $1 > $$.tmp && mv $$.tmp $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment