Skip to content

Instantly share code, notes, and snippets.

@sylvainfilteau
Created October 17, 2012 17:38
Show Gist options
  • Save sylvainfilteau/3906935 to your computer and use it in GitHub Desktop.
Save sylvainfilteau/3906935 to your computer and use it in GitHub Desktop.
Find number of occurence of the word "class" in php file in the "tests" directory
find tests -iname "*.php" | xargs grep "class" | sort | cut -f 1 -d : | uniq -c | sort -n -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment