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

Re: Checking if directory is empty in postrm



On Sun, Nov 15, 1998 at 11:23:09AM -0700, phumpherys@utah-inter.net wrote:
> 
> ls -1

May be I am missing something, but this does only affect the formatting of
the output of ls.

I need something that returns an error code if the directory is empty but
does return 0 if it is non-empty.

> Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:
> > can someone give me a hint how I can efficient test if a certain directory
> > is empty in the postrm (shell script)?

Thanks,
Marcus

-- 
"Rhubarb is no Egyptian god."        Debian GNU/Linux        finger brinkmd@ 
Marcus Brinkmann                   http://www.debian.org    master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de                        for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       PGP Key ID 36E7CD09


Reply to: