Skip to content

Instantly share code, notes, and snippets.

@pch
Last active May 17, 2016 09:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pch/4715528 to your computer and use it in GitHub Desktop.
Save pch/4715528 to your computer and use it in GitHub Desktop.
Nukes all trailing whitespace in the current project (rails specific).
find . -not \( -name .git -prune -o -name images -prune -o -name GeoLiteCity.dat -prune \) -type f -print0 | xargs -0 perl -pi -e 's/ +$//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment