On Wed, Sep 23, 2009 at 09:45:47PM +0800, Wu, Yue wrote: > The logic I need is: > > if maildir A has no mails(new/ tmp/ cur/ are empty) > rm -r A > endif
>From http://www.google.com/search?q=bash+test+empty+directory : http://www.cyberciti.biz/faq/linux-unix-shell-check-if-directory-empty/ -- Monte