The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Accepting filename as command line param and writing to it silas.john Shell Programming and Scripting 9 02-06-2008 05:26 AM
Use of mmin dnayakan HP-UX 1 01-18-2008 06:08 AM
Unix command mmin issue Mohee UNIX for Dummies Questions & Answers 1 08-30-2007 07:41 PM
Command param subst to reg expression videsh77 Shell Programming and Scripting 5 12-21-2004 10:46 AM
no [find -mmin -1] svennie UNIX for Dummies Questions & Answers 3 10-14-2004 06:37 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2004
Registered User
 

Join Date: Nov 2004
Posts: 1
Question find command using -mmin param

Hi Everyone,

I would like to know how to find a file which was created in the period of 20+ hours, in most common unix OS, the parameter -mmin is not supported (i.e, HP-UX, Solaris, LInux, AIX)

Could you help on this ??
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-04-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
-mmin is supported under most recent versions of GNU find.

I'm afraid to say that file creation time is not stored in the files inode and thus is impossible to find. -mmin refers to the time that the files data was last modified (which if you can guarantee that it hasn't changed since creation, "can" be used to indicate creation time, although this isn't a reliable and failsafe assumption).

Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 11-05-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,491
Try something like this - touch a file with a time 20 hours in the past, then find using -newer
Code:
touch -t 200411042000 dummyfile
find /path -newer dummyfile -print
Reply With Quote
  #4 (permalink)  
Old 11-11-2004
Registered User
 

Join Date: Nov 2002
Location: in my house
Posts: 36
well i knew the date so used (find . -mtime "days ago"
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0