Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!fauern!ira.uka.de!smurf!nadia!aragon!tyrell!rodney From: rodney@tyrell.stgt.sub.org (Rodney Volz) Newsgroups: comp.unix.questions Subject: Re: How do I tell when a directory is empty in a script? Message-ID: <128037@tyrell.stgt.sub.org> Date: 21 Apr 91 20:51:48 GMT References: <900@homer.UUCP> <1991Apr15.180550.14750@beaver.cs.washington.edu> <1991Apr18.054735.6733@metapro.DIALix.oz.au> Organization: Tyrell, Stuttgart (FRG) Lines: 12 In article <1991Apr18.054735.6733@metapro.DIALix.oz.au> bernie@metapro.DIALix.oz.au (Bernd Felsche) writes: > >rmdir $dir && mkdir $dir || echo $dir not empty 1>&2 What about permissions? -Rodney -- Rodney Volz - 7000 Stuttgart 1 - FRG ============> ...uunet!mcsun!unido!gtc!aragon!tyrell!rodney <============= rodney@tyrell.gtc.de * rodney@delos.stgt.sub.org * rodney@mcshh.hanse.de \_____________ May your children and mine live in peace. ______________/