Let's say we want to Zip files which are more than a week time under a folder /var/log/nmon :
# for i in `find /var/log/nmon -mtime +7 -type f -print`; do gzip $i; done
# for i in `find /var/log/nmon -mtime +7 -type f -print`; do gzip $i; done
No comments:
Post a Comment