Чувствую себя немного глупо прямо сейчас:
Почему мой разум всегда верен?
я пробовал
# this should let me know what's not a directory or
# symbolic link.
whoa=`find ${MUSICDIR} ! -type l ! -type d | wc -l`
# I would expect if it's 0 (meaning nothing was found) that
# one of these statements would evaluate to false, but so far
# it's always evaluating to true
if [[ "${whoa}" != "0" ]]
do something
fi
if [[ ${whoa} -gt 0 ]]
do something
fi
Что мне не хватает?