If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > How to find last one hour files in hp ux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Jan 2012
Posts: 5
How to find last one hour files in hp ux

Hi All,


i have to find the the list of files that are created in last one hour.
but i am new to HPUX,as i know we can use -mmin 60 command to find the last one hour files in SUN SOLARIS .

please help me its urgent .

i am using this
find . -type f -name "*.txt" -print
this give me the file of txt type but i can i come to know whethet it is crated in last one hour or not ......plss help mee
Reply With Quote
  #2 (permalink)  
Old
Programming since 1BC
 
Join Date: Sep 2009
Location: Ontario
Posts: 933
Simple answer. Install the "GNU Utilities" Software - GNU Project - Free Software Foundation

Alternatively, create a marker file, and set its modification time using 'touch'
then use 'ls -ltr' to find all the files newer than the marker file.
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Feb 2006
Posts: 169
Along the same response by kitaman, Check out the info on this page:
How to find the files that are created in the last hour in unix - Stack Overflow
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On