-   Linux - Newbie (
-   -   List out specific files? (

shivaa 10-12-2012 10:33 AM

List out specific files?
Hello friends,

I have a server which contain monthly log files for past 6 months. I want to list out all files between a specified period for some scripting purpose, let's say between 10 Sept 2012 and 30 Sept 2012. So what are the ways to achieve this? Can find command with -mtime help? Please share the full cmd. Well, it's a Solaris 10 server and moreover one contraint is that the cmd should not take too much time or increase the load.
Thanks a lot!

casualfred 10-12-2012 11:53 AM

I'm pretty sure this post talks about kind of the same thing:

shivaa 10-13-2012 08:50 AM


Originally Posted by casualfred (Post 4804072)
I'm pretty sure this post talks about kind of the same thing:

As far as I tried, find with -mtime is helpful, but how can we define a range of dates to search files modified in specified range i.e. between 15-Sept-2012 and 10-Oct-2012 ?

David the H. 10-13-2012 10:04 AM

Another user here once posted his collection of date-manipulation utilities, one of which is a date-grep designed specifically for searching through logs.

The page also has a selection of links to other similar projects.

jsaravana87 10-15-2012 06:56 AM


Look after these link,Tells you how to find the files with last modfied date

All times are GMT -5. The time now is 08:57 AM.