Last active
September 27, 2015 11:18
-
-
Save bernardobarreto/1261714 to your computer and use it in GitHub Desktop.
Remove trailling caracters from all ruby files in the current path
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
for f in $(find -name \*.rb | xargs egrep -r -l '\s+$') ; do | |
sed -r -i 's/\s+$//' $f ; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment