The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find the age of a file in Minutes hari_anj Shell Programming and Scripting 1 03-18-2008 03:22 AM
Find accessed file in past 1 or 2 minutes, and throw mail. varungupta UNIX for Advanced & Expert Users 2 09-12-2007 12:07 AM
Zip all the files within a directory on a daily basis ramky79 Shell Programming and Scripting 5 05-14-2007 12:13 PM
only find files older than x minutes old dsimpg1 Shell Programming and Scripting 1 05-18-2006 08:48 PM
find files onder than 15 minutes sveera UNIX for Advanced & Expert Users 11 08-11-2005 12:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-13-2006
Registered User
 

Join Date: Feb 2006
Posts: 52
Find files on minutes basis

Hello,

I was trying to find files which are created in last five minutes .
I tried to use command find with ntime and mtime but was not successfull then i read from this forum that we can not have a find option on minutes or seconds or hours......

Can somebody Pls expalin how can i search for last hr, min, and sec files by one single command....

Thanks
Aparna
Reply With Quote
Forum Sponsor
  #2  
Old 07-13-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 360
to find files which are created in last five minutes:
$ find -type f -mmin -5
Reply With Quote
  #3  
Old 07-16-2006
Registered User
 

Join Date: Feb 2006
Posts: 52
wrong option

Hello while running this command

find -type f -mmin -5
find: bad option -mmin

even i tried with path described too......

PLS SUGGEST
Aparna
Reply With Quote
  #4  
Old 07-16-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
Quote:
Originally Posted by er_aparna
Hello while running this command

find -type f -mmin -5
find: bad option -mmin

even i tried with path described too......

PLS SUGGEST
Aparna
Are you running an non GNU system? I believe that only the GNU version of the find command allows you to search for files created/modified in the last few minutes or hours... However your question has been answered on this site several times before. Go to the FAQs and on that page, look for the 'advanced/complex uses of the find command'. The posts in that will be exactly what you want.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0