[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Checking if directory is empty in postrm



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
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI


Reply to: