Skip to content

Instantly share code, notes, and snippets.

@tarsisazevedo
Forked from bernardobarreto/removetrailling.sh
Created October 4, 2011 14:43
Show Gist options
  • Save tarsisazevedo/1261813 to your computer and use it in GitHub Desktop.
Save tarsisazevedo/1261813 to your computer and use it in GitHub Desktop.
Remove trailling caracters from all files in the folder
for f in $(find -name \*.py | 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