Skip to content

Instantly share code, notes, and snippets.

@gregmercer
Created July 19, 2019 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregmercer/952989c5e8e9f558481c789b63c01da5 to your computer and use it in GitHub Desktop.
Save gregmercer/952989c5e8e9f558481c789b63c01da5 to your computer and use it in GitHub Desktop.
Remove trailing whitespace
find . -type f -name '*.rb' -exec sed -i '' 's/[[:space:]]*$//' {} \+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment