2
votes
1answer
59 views

How to reliably determine all folders not used in last 7 days?

I'm writing a script for cleanup job. The script needs to cleanup all folders which are not accessed for more than 7 days. Currently I'm using - for sub_folder in * ; do if [ -z $(find $sub_folder ...
2
votes
1answer
142 views

How to archive files with multiple conditions?

How do I find all files in a folder(including subfolders) with extension jpg or bmp, with size between 6 and 46 kilobytes, last modified between 11 and 19 June 2011 or between 24 July and 2 August ...