The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > 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 09:26 AM
Use of mmin dnayakan HP-UX 1 01-18-2008 10:08 AM
Unix command mmin issue Mohee UNIX for Dummies Questions & Answers 1 08-30-2007 11:41 PM
Command param subst to reg expression videsh77 Shell Programming and Scripting 5 12-21-2004 02:46 PM
no [find -mmin -1] svennie UNIX for Dummies Questions & Answers 3 10-14-2004 10:37 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-04-2004
jmbeltran jmbeltran is offline
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 ??
  #2 (permalink)  
Old 11-04-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
  #3 (permalink)  
Old 11-05-2004
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,790
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

  #4 (permalink)  
Old 11-11-2004
dozy dozy is offline
Registered User
  
 

Join Date: Nov 2002
Location: in my house
Posts: 37
well i knew the date so used (find . -mtime "days ago"
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 08:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0