Skip to content

Instantly share code, notes, and snippets.

@jamietanna
Last active August 29, 2015 14:14
Show Gist options
  • Save jamietanna/966c2fc772e2e4f6a4e6 to your computer and use it in GitHub Desktop.
Save jamietanna/966c2fc772e2e4f6a4e6 to your computer and use it in GitHub Desktop.
One-liner - remove all trailing spaces in a directory (excluding any precious git files)
sed -i 's/[ \t]*$//' $(find . -path '/.git' -prune -o -type f -print)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment