Good morning all
I have a question about using find.
how can find files modifed less than 12 days ago but more 5 days ago?
I know that is possible to use for loop with find command like that
for i in `find $something`; do (...) done
but I want to use find command with "if".
I am trying to create progress comments (and log files later) about removed files by my script. I need to check if
find /directory/whatever -name '*.tar.gz' -mtime +$DAYS
found something or not.
This is a very beginner question I think
I am writing a Bash script that aims to perform two tasks. First, find files and see how long it has been created.
If more than 30 days then delete; if less than 30 days, tar.
This is the code :