I'd like to constrain the following search to only files with a modified date <= "2009-05-29 11:59:00"
find /path -name "*.sb" ! -name "*[^0-9]*.sb" -type f -print
I'm using CentOS
|
feedback
|
|
hmm, 'find /path -mtime +7' will give you files older than 7 days, and 'find ! -newer somefile' will give you files older than somefile. So... touch -d "2009-05-29 11:59:00" timestampfile find /path -name ".sb" ! -name "[^0-9]*.sb" ! -newer timestampfile -type f -print | |||||||
feedback
|
|
! -newermt '5/29/2009 23:59:00' should work on BSD; there will be a similar option on GNU. | |||
|
feedback
|
You can place the | ||||
|
feedback
|
|
You want -mdate find /path -name ".sb" ! -name "[^0-9]*.sb" -type f -print -mdate -2009-05-30 Here are a couple of examples: http://www.softpanorama.org/Tools/Find/selecting_files_by_age.shtml | |||
|
feedback
|