Skip to content

Instantly share code, notes, and snippets.

@jage
Last active August 29, 2015 14:23
Show Gist options
  • Save jage/a26deb9be885d1a32d99 to your computer and use it in GitHub Desktop.
Save jage/a26deb9be885d1a32d99 to your computer and use it in GitHub Desktop.
Find unused csproj files by searching through sln files
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