Created
August 11, 2011 11:48
-
-
Save hoodja/1139459 to your computer and use it in GitHub Desktop.
Quickly find project directories which have the fewest test files (really just fewest files)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(find . -name '*TestMain.cpp' -exec dirname {} \; | sort | uniq); do | |
echo "$(find $i -type f -depth 1 -maxdepth 1 | wc -l) $i"; | |
done | sort -n | head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like that better - thanks Magnus!