Last active
August 29, 2015 14:23
-
-
Save jage/a26deb9be885d1a32d99 to your computer and use it in GitHub Desktop.
Find unused csproj files by searching through sln 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
find . -iname '*.csproj' | sort | uniq | while read csprojpath; do | |
grep -i $(basename $csprojpath) $(find . -iname '*.sln' -print) > /dev/null || echo "$csprojpath does not seem to be used" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment