Marcus Brinkmann writes: > I need something that returns an error code if the directory is empty but > does return 0 if it is non-empty.
[ `ls -1 $dir` ] -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Marcus Brinkmann writes: > I need something that returns an error code if the directory is empty but > does return 0 if it is non-empty.
[ `ls -1 $dir` ] -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI