log_dir = "/etc/httpd/logs/2006" arch_dir = "/etc/httpd/logs/archive" find $log_dir -mtime +0 -type f -exec gzip {} \; -exec mv {}".gz" $arc +h_dir \;
In reply to Re: moving old files
by rhesa
in thread moving old files
by pbaumgar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |