Skip to content

Instantly share code, notes, and snippets.

@kbourgoin
Created January 20, 2012 01:08
Show Gist options
  • Save kbourgoin/1644196 to your computer and use it in GitHub Desktop.
Save kbourgoin/1644196 to your computer and use it in GitHub Desktop.
Remove trailing whitespace from all *.py files
find ./ -not -path '.git' -iname '*.py' -exec sed -i 's/ *$//' '{}' ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment