find (, UNIX/Linux), git:
find . -type f | git check-ignore
find . -type f , git check-ignore , .gitignore.
check-ignore . .git , , POSIX (, bash, sh, dash, zsh). , .gitignore , . glob .gitignore, :
while read glob ; do
if [ -d "$glob" ] ; then
find "$glob" -type f -exec \
bash -c "FILE={};[ \$(git status -s \$FILE) == "" ] && echo \$FILE" \;
else
for file in "$glob" ; do
bash -c "FILE={};[ \$(git status -s \$FILE) == "" ] && echo \$FILE" \;
done
fi
done < .gitignore 2>/dev/null | sort