<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Find command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660669#M48323</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You are telling find to find all files older the +1 days. What is bigger than 1? 2. Change to +0. Warning: always test your find's with a safe statement like -exec echo {} \; BEFORE doing the real thing will -exec rm {} \;&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Feb 2002 13:45:42 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-02-07T13:45:42Z</dc:date>
    <item>
      <title>Find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660667#M48321</link>
      <description>I am using the following command and have a question.&lt;BR /&gt;0 * * * * /usr/bin/find /u03/oradata/archprod -mtime +1 -exec rm {} \;&lt;BR /&gt;This seams to be working but in the directory it is keeping two days worth of stuff.  I want all log files older than one day to be removed.  I look and there is currently files from 02/05/02 on on the hour of the script.  Any suggestions on how to only keep one day (24 hours) of files?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Larry</description>
      <pubDate>Thu, 07 Feb 2002 13:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660667#M48321</guid>
      <dc:creator>Larry Scheetz</dc:creator>
      <dc:date>2002-02-07T13:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660668#M48322</link>
      <description>&lt;BR /&gt;-mtime +0 will do the trick.</description>
      <pubDate>Thu, 07 Feb 2002 13:43:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660668#M48322</guid>
      <dc:creator>George A Bodnar</dc:creator>
      <dc:date>2002-02-07T13:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660669#M48323</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You are telling find to find all files older the +1 days. What is bigger than 1? 2. Change to +0. Warning: always test your find's with a safe statement like -exec echo {} \; BEFORE doing the real thing will -exec rm {} \;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2002 13:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660669#M48323</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-07T13:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660670#M48324</link>
      <description>Try -mtime +0&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 07 Feb 2002 13:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660670#M48324</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-02-07T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660671#M48325</link>
      <description>Hi Larry:&lt;BR /&gt;&lt;BR /&gt;A "day" to 'find' is a 24-hour period.  If you want to refine your criteria further, you can touch a reference file and use the '-newer' option (negated or not, as necessary).&lt;BR /&gt;&lt;BR /&gt;# touch -a -m -t 200202070700 /tmp/ref&lt;BR /&gt;# find /tmp -type f -newer /tmp/ref&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 07 Feb 2002 13:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660671#M48325</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-02-07T13:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660672#M48326</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I found a reference to the mtime which suggests the following.&lt;BR /&gt;&lt;BR /&gt;-mtime option looks at&lt;BR /&gt;&lt;BR /&gt;-1  since yesterday ( as within 24 hours)&lt;BR /&gt; 1   yesterday    (between 24 and 48 hours old)&lt;BR /&gt;+1  before yesterday (48 hours or older)&lt;BR /&gt;&lt;BR /&gt;Explanation of the argument n is explained in the expressions part of the man page for find(1) and your HP-UX Reference.&lt;BR /&gt;&lt;BR /&gt;        steve Steel</description>
      <pubDate>Thu, 07 Feb 2002 13:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660672#M48326</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-07T13:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660673#M48327</link>
      <description>Write a perl script to look for the files.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.fnal.gov/docs/products/perl/pod.new/5.00503/pod/perlfaq5.html#How_do_I_get_a_file_s_timestamp_" target="_blank"&gt;http://www.fnal.gov/docs/products/perl/pod.new/5.00503/pod/perlfaq5.html#How_do_I_get_a_file_s_timestamp_&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, you can get Gnu's find, which allows MINUTE searches:&lt;BR /&gt;&lt;A href="http://www.gnu.org/manual/findutils-4.1/html_mono/find.html#SEC15" target="_blank"&gt;http://www.gnu.org/manual/findutils-4.1/html_mono/find.html#SEC15&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 07 Feb 2002 14:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/2660673#M48327</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-07T14:00:02Z</dc:date>
    </item>
  </channel>
</rss>

