#!/usr/bin/env bash nMails=$(find $HOME/.mail -path '*/new/*' -type f -not -path '*/rss/*' -not -path '*/lists/*' | wc -l) if [[ ${nMails} -eq 0 ]]; then echo -e " ${nMails}" else echo -e " ${nMails}" fi