Skip to content

Instantly share code, notes, and snippets.

@Leask
Created September 3, 2013 07:42
Show Gist options
  • Select an option

  • Save Leask/6420777 to your computer and use it in GitHub Desktop.

Select an option

Save Leask/6420777 to your computer and use it in GitHub Desktop.
Removing the tailing spaces in codes
sed -i -r 's/ +$//' `find . -path ./sdk -prune -o -regextype posix-extended -regex '.* (css|html|js|php|sql|svg)' -exec grep -rl ' $' {} ;`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment