Jeśli polecenie ma bash wyjściowy
if [[ $(find . -type f -iname \*.exe -exec echo {} \;
) ]]; then
echo "found $(find . -type f -iname \*exe -exec echo {} \; | wc -l
) files "
else
echo "no files found"
fi
FalkenE