Computing.Net > Forums > Unix > How to find out the file by hour

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to find out the file by hour

Reply to Message Icon

Name: jds
Date: May 5, 2008 at 11:35:14 Pacific
OS: XP
CPU/Ram: 1000
Product: HP
Comment:

Hi,
I am trying to find out the file which over 1 hour ( or 30 min, or 30 seconds)
I know how to find out the files by day using mtime
find . -mtime -1 -name "myfile" -exec ls {} \;
and I know there is also an option for -mmin
BUT unfortunately this option doesn't work in my server
Can anyone show me how to find out the file by hour/min/second?
Thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: May 5, 2008 at 18:04:29 Pacific
Reply:

Probably the best solution is to create a file with the unix touch command, and then use the find command's -newer option. The following link describes how to use it:

http://www.unixreview.com/documents...

Look at the 2nd tip: finding files within a date range.


0

Response Number 2
Name: jds
Date: May 7, 2008 at 14:50:24 Pacific
Reply:

Thanks Nails.Perhaps this is the only option I can have for now.
Good site to view, btw.
Thank a lot


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: How to find out the file by hour

How to find out the Processor speed on A www.computing.net/answers/unix/how-to-find-out-the-processor-speed-on-a/3486.html

how to find the cause for zombie www.computing.net/answers/unix/how-to-find-the-cause-for-zombie/5372.html

How to find week no. of the month? www.computing.net/answers/unix/how-to-find-week-no-of-the-month/5792.html