Skip to content

Instantly share code, notes, and snippets.

@AlexChittock
Created September 18, 2012 10:01
Show Gist options
  • Save AlexChittock/3742356 to your computer and use it in GitHub Desktop.
Save AlexChittock/3742356 to your computer and use it in GitHub Desktop.
Find PHP files with trailing whitespace
find . -name "*.php" | xargs grep -c -P '\s+$' | grep -v ':0$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment