Skip to content

Instantly share code, notes, and snippets.

@gunjanpatel
Created March 19, 2018 07:52
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 gunjanpatel/63e6e0da65f801fbbb7c1953e5461ca1 to your computer and use it in GitHub Desktop.
Save gunjanpatel/63e6e0da65f801fbbb7c1953e5461ca1 to your computer and use it in GitHub Desktop.
Find php syntax error on current directory
find . -type f -name "*.php" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v 'No syntax errors'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment