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
finding the file which is modified within last 2 hours trichyselva Shell Programming and Scripting 3 03-21-2008 03:11 AM
Finding list of modified files for a particular time duration sanajyg_mnit SUN Solaris 2 02-12-2007 11:48 PM
Finding out the last modified time for files kumariak Shell Programming and Scripting 3 10-18-2005 11:11 AM
files created within last 10 mins frustrated1 UNIX for Dummies Questions & Answers 5 08-03-2005 07:09 AM
Finding modified files rhayabusa UNIX for Dummies Questions & Answers 2 12-16-2004 09:48 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-14-2007
Registered User
 

Join Date: Feb 2005
Location: Bangalore
Posts: 36
Finding files which are modified few mins ago

Hi All,

I have a requirement to find out the files which are modified in the last 10 minutes.

I tried the find command with -amin and -mmin options, but its not working on my AIX server.

Can anyone of you could help me.

Thanks in advance for your help.
Raju
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-14-2007
Registered User
 

Join Date: May 2007
Posts: 111
try this one:

find . -mmin -10

more info:

http://www.unix.com/shell-programmin...hours-old.html
Reply With Quote
  #3 (permalink)  
Old 08-16-2007
Registered User
 

Join Date: Feb 2005
Location: Bangalore
Posts: 36
Thanks for the help.

But the -mmin option is not working. I tried -newer option for which you have provided a link, thats working.

Please let me know if there is any other option.

Thanks,
raju
Reply With Quote
  #4 (permalink)  
Old 08-16-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
How about reading the FAQs before asking questions? Here are the FAQs. You know that you are looking for the find command. On the FAQ page, there is a link to the advanced/complex uses of the find command.

Go there and you will find what you are looking for. Exactly what you are looking for.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:24 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 Global Fact Book

Content Relevant URLs by vBSEO 3.2.0