<?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: urgent script help again in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570550#M873036</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;something like this will do:&lt;BR /&gt;&lt;BR /&gt;find /tmp -mtime +2 -type f -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;or if you want to narrow it down to specific files:&lt;BR /&gt;find /tmp -mtime +2 -name '*.txt' -type f -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
    <pubDate>Mon, 27 Aug 2001 08:21:17 GMT</pubDate>
    <dc:creator>Thierry Poels_1</dc:creator>
    <dc:date>2001-08-27T08:21:17Z</dc:date>
    <item>
      <title>urgent script help again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570549#M873035</link>
      <description>i would like to remove my directory files which past over 3 days. how could i write a script to do it ??&lt;BR /&gt;e.g.&lt;BR /&gt;/tmp/010823.txt&lt;BR /&gt;/tmp/010824.txt&lt;BR /&gt;/tmp/010825.txt&lt;BR /&gt;/tmp/010826.txt&lt;BR /&gt;/tmp/010827.txt&lt;BR /&gt;&lt;BR /&gt;i would like to delete first 2 lines (past 3 days).</description>
      <pubDate>Mon, 27 Aug 2001 08:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570549#M873035</guid>
      <dc:creator>Kenn Chen</dc:creator>
      <dc:date>2001-08-27T08:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: urgent script help again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570550#M873036</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;something like this will do:&lt;BR /&gt;&lt;BR /&gt;find /tmp -mtime +2 -type f -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;or if you want to narrow it down to specific files:&lt;BR /&gt;find /tmp -mtime +2 -name '*.txt' -type f -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
      <pubDate>Mon, 27 Aug 2001 08:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570550#M873036</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-08-27T08:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: urgent script help again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570551#M873037</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you can use date :&lt;BR /&gt;date +%o%m%d give you 010827&lt;BR /&gt;&lt;BR /&gt;(man date)&lt;BR /&gt;&lt;BR /&gt;You can use date +%o to have year, ....&lt;BR /&gt;and after you can compare and find an &lt;BR /&gt;alogrithm to delete your files...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Herv?&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2001 08:34:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570551#M873037</guid>
      <dc:creator>Herve BRANGIER</dc:creator>
      <dc:date>2001-08-27T08:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: urgent script help again</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570552#M873038</link>
      <description>Hi Idris,&lt;BR /&gt;&lt;BR /&gt;Here is :&lt;BR /&gt;&lt;BR /&gt;#find /tmp -mtime +3 -type f -exec rm -f {} \; &lt;BR /&gt;&lt;BR /&gt;+3 is a multiple od 24 hours.&lt;BR /&gt;&lt;BR /&gt;Will delete files older that 72 hours.&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Mon, 27 Aug 2001 09:17:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-script-help-again/m-p/2570552#M873038</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-08-27T09:17:09Z</dc:date>
    </item>
  </channel>
</rss>

