Skip to content

Instantly share code, notes, and snippets.

@l0b0
Created December 7, 2010 16:15
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 l0b0/731975 to your computer and use it in GitHub Desktop.
Save l0b0/731975 to your computer and use it in GitHub Desktop.
Find files missing from the local Makefile
find . -maxdepth 1 -print0 | \
sort --zero-terminated | \
while IFS= read -rd $'\0' path
do
grep "$(basename -- "${path:2}")" -- Makefile >/dev/null || echo "Could not find $path"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment