Skip to content

Instantly share code, notes, and snippets.

@cbartlett
Created September 11, 2012 13:51
Show Gist options
  • Save cbartlett/3698644 to your computer and use it in GitHub Desktop.
Save cbartlett/3698644 to your computer and use it in GitHub Desktop.
Kill whitespace!
find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment