<?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: Deletion of files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210514#M678599</link>
    <description>Thanks.</description>
    <pubDate>Thu, 19 Nov 2009 20:36:04 GMT</pubDate>
    <dc:creator>rhansen</dc:creator>
    <dc:date>2009-11-19T20:36:04Z</dc:date>
    <item>
      <title>Deletion of files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210512#M678597</link>
      <description>Hello,&lt;BR /&gt;The task is to delete any files under directory /home/hansen/download which are older than 210 days.&lt;BR /&gt;&lt;BR /&gt;Can someone help me with a script for automating this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Thu, 19 Nov 2009 20:17:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210512#M678597</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-11-19T20:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210513#M678598</link>
      <description>Hello hansen.&lt;BR /&gt;Test the following command out in some unimportant folder first.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;find /home/hansen/download/* -mtime +210 -exec rm {} \;</description>
      <pubDate>Thu, 19 Nov 2009 20:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210513#M678598</guid>
      <dc:creator>Fabian Briseño</dc:creator>
      <dc:date>2009-11-19T20:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210514#M678599</link>
      <description>Thanks.</description>
      <pubDate>Thu, 19 Nov 2009 20:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210514#M678599</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-11-19T20:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210515#M678600</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can improve the performance of your removal by using this syntax:&lt;BR /&gt;&lt;BR /&gt;# find /home/hansen/download -type f -mtime +210 -exec rm {} +&lt;BR /&gt;&lt;BR /&gt;...instead of:&lt;BR /&gt;&lt;BR /&gt;# find /home/hansen/download/* -mtime +210 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Notice that the path to find() does not include the wildcard.  You don't need the shell expanding this list.  Next, files are specifically selected with '-type f'.  Lastly, the terminator to '-exec' is a "+" character.  This causes multiple arguments to be assembled for each 'rm' command spawned.  Your processor and will love you :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Nov 2009 22:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210515#M678600</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-19T22:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion of files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210516#M678601</link>
      <description>Thanks for improving/refining my script&lt;BR /&gt;Mr. Ferguson.&lt;BR /&gt;&lt;BR /&gt;I had no idea I was putting extra unneeded work on my processor.&lt;BR /&gt;&lt;BR /&gt;Live and learn.</description>
      <pubDate>Thu, 19 Nov 2009 22:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deletion-of-files/m-p/5210516#M678601</guid>
      <dc:creator>Fabian Briseño</dc:creator>
      <dc:date>2009-11-19T22:31:58Z</dc:date>
    </item>
  </channel>
</rss>

