Skip to content

Instantly share code, notes, and snippets.

@larsxschneider
Created March 2, 2012 13:11
Show Gist options
  • Save larsxschneider/1958300 to your computer and use it in GitHub Desktop.
Save larsxschneider/1958300 to your computer and use it in GitHub Desktop.
Remove trailing whitespaces
find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"
@larsxschneider
Copy link
Author

TODO: ignore .git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment