Skip to content

Instantly share code, notes, and snippets.

@chpio
Created October 6, 2014 09:36
Show Gist options
  • Save chpio/faeb4a00b4da91dbd589 to your computer and use it in GitHub Desktop.
Save chpio/faeb4a00b4da91dbd589 to your computer and use it in GitHub Desktop.
#!/bin/sh
find . -type f -regextype posix-extended -regex ".*\.(php|js|hbs|html|scss|module)" -exec sed -i "s/[[:space:]]*$//" {} \;
@nicoknoll
Copy link

Nice :)

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