Dear Experts,
I need a script which will zipped the files older than 2 days.
but i dont want to use find . * -mtime 2.
Is there is any other method to achive this task.
i will ececute the script daily.
Regards,
Dear Experts,
I need a script which will zipped the files older than 2 days.
but i dont want to use find . * -mtime 2.
Is there is any other method to achive this task.
i will ececute the script daily.
Regards,
man find
find . -type f -mtime +2 -exec gzip {} \;
Not specifically picking on you - and sorry if this is something offending
Why is that you don't want to use mtime - there should be some reason behind that. I hope so
If that is something shareable please do let us know about that.
Reason could be anything
1) don't like mtime
2) trying out different options
3) option not supported ( this is not obvious )
4) or any other reason
options are there to help us, ease of usage and quickly achieve what is required.
I don't understand why a specific option should not be used.
Simple option,