Skip to content

Instantly share code, notes, and snippets.

@bernardobarreto
Last active September 27, 2015 11:18
Show Gist options
  • Save bernardobarreto/1261714 to your computer and use it in GitHub Desktop.
Save bernardobarreto/1261714 to your computer and use it in GitHub Desktop.
Remove trailling caracters from all ruby files in the current path
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