LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   List out specific files? (http://www.linuxquestions.org/questions/linux-newbie-8/list-out-specific-files-4175431872/)

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:
http://www.linuxquestions.org/questi...es-4175424646/

shivaa 10-13-2012 08:50 AM

Quote:

Originally Posted by casualfred (Post 4804072)
I'm pretty sure this post talks about kind of the same thing:
http://www.linuxquestions.org/questi...es-4175424646/

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.

http://hrop.fresse.org/dateutils/

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

arun5002 10-15-2012 06:56 AM

Hi

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


http://www.cyberciti.biz/faq/howto-f...files-by-date/


All times are GMT -5. The time now is 10:14 PM.