Results 1 to 4 of 4
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?...
- 12-26-2009 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 28
using find
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?
- 12-26-2009 #2
Hi,
I can't exactly answer your question but usually I use this command
against my testing Oracle servers to remove old archived log files.Code:find . /<path_to_folder>/arch_prod*.arc -ctime +5 -exec rm {} \;
The "-ctime +5" parameter causes the find command to search for files with change dates more than five days in the past.
- 12-26-2009 #3Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
Try this:
Code:find . /<path_to_dir> \( -ctime -12 -a -ctime +5 \)
- 12-27-2009 #4Just Joined!
- Join Date
- Dec 2009
- Posts
- 28
thank you, i will try


Reply With Quote