Help - we lost all our files!

James Cummings james at dlss2.UUCP
Sun Jun 30 02:01:51 AEST 1991


In article <1347 at escob1.UUCP> dickson at 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.



More information about the Comp.unix.admin mailing list