Hi Ian,

> How can I use tmpwatch or something else to just delete files with a
> certain extension instead of everything in the directory, I want to
> automatically clean up .zip files that are older than 1 week in a
> specific directory

How about

find {dir} -name '*.zip' -maxdepth 1 -mtime +7 -exec rm -f {} \;

?

Kind regards
Frank



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to