Skip to content

Instantly share code, notes, and snippets.

@putermancer
Created October 22, 2010 23:05
Show Gist options
  • Save putermancer/641533 to your computer and use it in GitHub Desktop.
Save putermancer/641533 to your computer and use it in GitHub Desktop.
remove trailing whitespace
# ^V + TAB to get the tab character, since sed doesn't like \t
find . -type f -name "*.py" -print0 | xargs -0 sed -i '' -e 's/[ ]*$//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment