[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-admin
Subject:    [HPADM] find command help on previous day's (yesterday's) file
From:       Balaji Nathan <balajinathan2003 () yahoo ! com>
Date:       2004-07-28 14:47:24
Message-ID: 20040728144724.84298.qmail () web51104 ! mail ! yahoo ! com
[Download RAW message or body]

Hi admins, 
How to find the files which are created Just after midnight, the previous day. 
 
For the file which are created after midnight TODAY, I could refer to a file with the \
-newer option.  
find / -name "abc*.txt" -newer  /etc/today-file-after-midnight.
 
The question is for the PREVIOUS days file. Just the previous day!!
the command 
find / -name "def*.txt" -mtime +1    - gives me the list of ALL previous old files. \
But I want only the previous day (yesterday) file.  
Please help.
Balaji
 

		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!


[Attachment #3 (text/html)]

<DIV>Hi admins, </DIV>
<DIV>How to find the files which are created Just after midnight, the previous day. \
</DIV> <DIV>&nbsp;</DIV>
<DIV>For the file which are created after midnight TODAY, I could refer to a file \
with the -newer option.</DIV> <DIV>&nbsp;</DIV>
<DIV>find / -name "abc*.txt" -newer&nbsp; /etc/today-file-after-midnight.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The question is for the PREVIOUS days file. Just the previous day!!</DIV>
<DIV>the command </DIV>
<DIV>find / -name "def*.txt" -mtime +1&nbsp;&nbsp;&nbsp; - gives me the list \
of&nbsp;ALL previous old files. But I want only the previous day \
(yesterday)&nbsp;file.</DIV> <DIV>&nbsp;</DIV>
<DIV>Please help.</DIV>
<DIV>Balaji</DIV>
<DIV>&nbsp;</DIV><p>
		<hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/10/*http://promotions.yahoo.com/new_mail/static/efficiency.html">New \
and Improved Yahoo! Mail</a> - Send 10MB messages!


--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl

 Archives:  ftp.dutchworks.nl/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic