On Thu, Oct 09, 2003 at 01:29:00AM +0200, Sven Luther wrote: > Ideally, i should erase the ld.conf, verify that the directory is empty, > and then rmdir it. I have no idea how i test that a directory is empty > though. DIRNAME=... it [ "`find $DIRNAME`" == "$DIRNAME" ]; then echo "dir is empty" else echo "dir is not empty" fi should do the job ... -- Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/zack/ " I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant! " -- G.Romney
Attachment:
signature.asc
Description: Digital signature