<?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: Delete Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027784#M718849</link>
    <description>HI&lt;BR /&gt;&lt;BR /&gt;This post covers what you require:-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5a4135a43b46d71190080090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5a4135a43b46d71190080090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
    <pubDate>Fri, 18 Jul 2003 18:43:35 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2003-07-18T18:43:35Z</dc:date>
    <item>
      <title>Delete Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027783#M718848</link>
      <description>I'm looking for a script , which deletes all files those are modified 2 months back and prior to that.&lt;BR /&gt;&lt;BR /&gt;find /backup_files -name 'branch_file*' -type f -xdev -mtime +60 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;This removes only files that are modified between 1416 hours(59th day) and 1440 hours (60th days)  back.&lt;BR /&gt;But i also want to delete files that was accessed 2 yrs back. So i need a generalized &lt;BR /&gt;script which deletes all files older(modified) than 2 months.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 18 Jul 2003 18:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027783#M718848</guid>
      <dc:creator>Prabhu_7</dc:creator>
      <dc:date>2003-07-18T18:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027784#M718849</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;This post covers what you require:-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5a4135a43b46d71190080090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5a4135a43b46d71190080090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 18 Jul 2003 18:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027784#M718849</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-07-18T18:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027785#M718850</link>
      <description>Script is attached.&lt;BR /&gt;&lt;BR /&gt;It only works with cron, ie no terminal.  You will have to hack it to make it work with a TERM session.  Its not hard though.&lt;BR /&gt;&lt;BR /&gt;It uses a configuration file that lets you limit what directories it can touch.  Just include the folder or filesystem name.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 18 Jul 2003 18:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027785#M718850</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-18T18:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027786#M718851</link>
      <description>Script is attached.&lt;BR /&gt;&lt;BR /&gt;It only works with cron, ie no terminal.  You will have to hack it to make it work with a TERM session.  Its not hard though.&lt;BR /&gt;&lt;BR /&gt;It uses a configuration file that lets you limit what directories it can touch.  Just include the folder or filesystem name.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 18 Jul 2003 18:54:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027786#M718851</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-18T18:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027787#M718852</link>
      <description>Hi Prabhu:&lt;BR /&gt;&lt;BR /&gt;You might try this modification:&lt;BR /&gt;&lt;BR /&gt;# find /backup_files -xdev \( -type f -a -name "branch_file*" -a -mtime +60 \) -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Note that spaces follow the open parentheses and precede the close parentheses.  Note, too, that the parentheses must be escaped.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 18 Jul 2003 19:34:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-script/m-p/3027787#M718852</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-07-18T19:34:00Z</dc:date>
    </item>
  </channel>
</rss>

