<?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: To find files 5 hour older in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146327#M453665</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Perl will do this.  You want files that are "older" (less recently modified) than 5-hours ago and only those that have a ".dbf'" extension, so you need:&lt;BR /&gt;&lt;BR /&gt;# perl -MFile::Find -le 'find(sub{unlink $File::Find::name if -f $_ &amp;amp;&amp;amp; -M _ &amp;gt;= 5/24 &amp;amp;&amp;amp; $_=~/.+\.dbf/},@ARGV)' /oracle/TCP/saparch/TCParch&lt;BR /&gt;&lt;BR /&gt;Notice that Ahsan's post printed and didn't remove filenames and returned files modified during the last (1) hour --- a cut and paste from another post that didn't solve your problem.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 15 Dec 2008 12:54:43 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-12-15T12:54:43Z</dc:date>
    <item>
      <title>To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146324#M453662</link>
      <description>Hi,&lt;BR /&gt;I want to find the files generated by oralce as dbf 5 hours older and delete those files.&lt;BR /&gt;find /oracle/TCP/saparch/TCParch -name file "*.dbf" -mtime +0 -exec rm '{}' . \; will find 24 hrs older file. But i want to have 5 hours older</description>
      <pubDate>Mon, 15 Dec 2008 09:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146324#M453662</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2008-12-15T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146325#M453663</link>
      <description>this sample perl script will tell you the last 1 hour which files are created&lt;BR /&gt;&lt;BR /&gt;#perl -MFile::Find -le 'find(sub{print $File::Find::name if -f $_ &amp;amp;&amp;amp; -M _ &amp;lt;= 1/24},@ARGV)' /path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;modify as per your requirement.</description>
      <pubDate>Mon, 15 Dec 2008 09:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146325#M453663</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-12-15T09:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146326#M453664</link>
      <description>You can also create a reference file with touch(1) then use the -newer option in find(1):&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1254376" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1254376&lt;/A&gt;</description>
      <pubDate>Mon, 15 Dec 2008 10:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146326#M453664</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-15T10:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146327#M453665</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Perl will do this.  You want files that are "older" (less recently modified) than 5-hours ago and only those that have a ".dbf'" extension, so you need:&lt;BR /&gt;&lt;BR /&gt;# perl -MFile::Find -le 'find(sub{unlink $File::Find::name if -f $_ &amp;amp;&amp;amp; -M _ &amp;gt;= 5/24 &amp;amp;&amp;amp; $_=~/.+\.dbf/},@ARGV)' /oracle/TCP/saparch/TCParch&lt;BR /&gt;&lt;BR /&gt;Notice that Ahsan's post printed and didn't remove filenames and returned files modified during the last (1) hour --- a cut and paste from another post that didn't solve your problem.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 15 Dec 2008 12:54:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146327#M453665</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-15T12:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146328#M453666</link>
      <description>as said above, find will do this for you :)&lt;BR /&gt;&lt;BR /&gt;$ touch -t 200812150000 /tmp/ref1.tmp&lt;BR /&gt;$ touch -t 200812150500 /tmp/ref2.tmp&lt;BR /&gt;$ find ./ -type f -newer /tmp/ref1.tmp ! -newer /tmp/ref2.tmp -iname \*.dbf -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Fredrik Eriksson</description>
      <pubDate>Mon, 15 Dec 2008 14:48:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146328#M453666</guid>
      <dc:creator>Fredrik.eriksson</dc:creator>
      <dc:date>2008-12-15T14:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146329#M453667</link>
      <description>The standard HP/UX find -mtime 0 is within the last 24 hours, if you can use the "GNU" find you can use the -mmin 300 (for 5 hours) for 24+5 with the GNU find you would use&lt;BR /&gt; -mmin 1740 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2008 15:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146329#M453667</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-12-16T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146330#M453668</link>
      <description>your command:&lt;BR /&gt;find /oracle/TCP/saparch/TCParch -name file "*.dbf" -mtime +0 -exec rm '{}' . \; will find 24 hrs older file. But i want to have 5 hours older &lt;BR /&gt;&lt;BR /&gt;GNU command &lt;BR /&gt;5 Hours &lt;BR /&gt;find /oracle/TCP/saparch/TCParch -type f -name "*.dbf" -mmin 300 -exec rm '{}' .\; &lt;BR /&gt;&lt;BR /&gt;29 Hours &lt;BR /&gt;find /oracle/TCP/saparch/TCParch -type f -name "*.dbf" -mmin 1740 -exec rm '{}' .\; &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/findutils-4.4.0/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/findutils-4.4.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2008 15:50:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146330#M453668</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-12-16T15:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146331#M453669</link>
      <description>See Jim's Perl Routine in this link: &lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1296181" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1296181&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2008 15:52:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146331#M453669</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-12-16T15:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146332#M453670</link>
      <description>I mean "James F"</description>
      <pubDate>Tue, 16 Dec 2008 15:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146332#M453670</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-12-16T15:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: To find files 5 hour older</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146333#M453671</link>
      <description>Thanks for the solution.</description>
      <pubDate>Wed, 19 Aug 2009 06:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-files-5-hour-older/m-p/5146333#M453671</guid>
      <dc:creator>Narendra Uttekar</dc:creator>
      <dc:date>2009-08-19T06:14:01Z</dc:date>
    </item>
  </channel>
</rss>

