[X-Unix] Trying to get rid of unwanted files

James Bucanek subscriber at gloaming.com
Fri May 14 11:55:10 PDT 2004


Stroller wrote on Thursday, May 13, 2004:

>You want to use `find, in conjunction with the "-prune" primary.
>Something like:
>   find /var/spool/cups -type f -prune /var/spool/cups/tmp -exec rm -f 
>\{} \;

Another suggestion: Rather than wiping *all* of the files, why not just delete the ones that are more than 24 hours old?

    find /var/spool/cups -mmin 1440 ...
    
______________________________________________________
James Bucanek       <mailto:privatereply at gloaming.com>



More information about the X-Unix mailing list