On Wednesday 21 February 2007 11:42, Eur Ing Chris Green wrote: > What's the simplest (and/or most concise) way to check for an empty > directory? if test -z `ls foo` ; then wibble ; fi Or if [ -z `ls foo` ] ; then wibble ; fi There's probably other ways.... Regards, Paul.