Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!convex!texsun!csccat!dalnet!dlss2!james From: james@dlss2.UUCP (James Cummings) Newsgroups: comp.unix.admin Subject: Re: Help - we lost all our files! Message-ID: <332@dlss2.UUCP> Date: 29 Jun 91 16:01:51 GMT References: <1347@escob1.UUCP> Organization: RedRock Development Lines: 14 In article <1347@escob1.UUCP> dickson@escob1.UUCP (Dave Dickson) writes: > >CRONTAB ENTRY: >45 3 * * * find /tmp/* /usr/tmp/* -mtime +1 -print | xargs rm -r > Is the purpose just to remove files in /tmp and /usr/tmp that are older than one day? If that is all then why not: find /tmp -mtime +1 -exec rm {} \; find /usr/tmp -mtime +1 -exec rm {} \; Either from lack of sophistication or just a desire to *keep it simple*, I've never attempted using xargs like this.