Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!wb3ffv!ka3ovk!raysnec!shwake From: shwake@raysnec.UUCP (Ray Shwake) Newsgroups: comp.unix.i386 Subject: Re: Interactive 2.2 File zapper. Message-ID: <11@raysnec.UUCP> Date: 27 Jul 90 16:17:36 GMT References: <772@essnj1.ESSNJAY.COM> <7774@uudell.dell.com> Organization: IRS/CI - Technical Solutions Branch Lines: 11 jrh@mustang.dell.com (James Howard) writes: >touch /lost+found >find /lost+found -mtime +14 -exec rm -rf {} \; >/dev/null 2>&1 ... except that touch will create a FILE if the entity does not already exist. Better to do something like: if [ -d /lost+found ]; do find .... fi