On Wed, Feb 21, 2007 at 11:42:10AM +0000, Eur Ing Chris Green wrote:
What's the simplest (and/or most concise) way to check for an empty
directory?
Is it
[ -d $dirname ] && [ $dirname/* == "$dirname/*" ]
in Bourne shell?
Regards,
--
MJ Ray - see/vidu
http://mjr.towers.org.uk/email.html
Webmaster/web developer, statistician, sysadmin, trainer, koha dev,
GNU/Linux, debian, gobolinux, gnustep, online shops, mailing lists.
Near Weston-super-Mare, Somerset, England.
http://www.ttllp.co.uk/