<?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: script for remove file time basis in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851709#M104025</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;locate the files&lt;BR /&gt;# find /dir -mtime +28 -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;# find /dir -mtime +28 -exec rm {} \;&lt;BR /&gt;remove the files.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
    <pubDate>Fri, 12 Dec 2003 07:53:43 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens_1</dc:creator>
    <dc:date>2003-12-12T07:53:43Z</dc:date>
    <item>
      <title>script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851707#M104023</link>
      <description>Hi,&lt;BR /&gt;I need a script in Ksh for remove only the old files; for example the files with more then 4 weeks.&lt;BR /&gt;Thank</description>
      <pubDate>Fri, 12 Dec 2003 07:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851707#M104023</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2003-12-12T07:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851708#M104024</link>
      <description>find /dirname -type f -mtime +28 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 12 Dec 2003 07:52:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851708#M104024</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-12T07:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851709#M104025</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;locate the files&lt;BR /&gt;# find /dir -mtime +28 -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;# find /dir -mtime +28 -exec rm {} \;&lt;BR /&gt;remove the files.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Fri, 12 Dec 2003 07:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851709#M104025</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2003-12-12T07:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851710#M104026</link>
      <description>Check man page of find. -mtime option.&lt;BR /&gt;&lt;BR /&gt;find /dir_wher_files_reside -mtime +28 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Dec 2003 07:55:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851710#M104026</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-12T07:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851711#M104027</link>
      <description>Ok...Thank&lt;BR /&gt;Ciao a tutti!</description>
      <pubDate>Fri, 12 Dec 2003 08:07:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851711#M104027</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2003-12-12T08:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851712#M104028</link>
      <description>Hi francesco,&lt;BR /&gt;&lt;BR /&gt;For the first time i should use option -OK&lt;BR /&gt;&lt;BR /&gt;find . -mtime +28 -ok rm {} ';'&lt;BR /&gt;&lt;BR /&gt;Then you can see witch file you just removed.&lt;BR /&gt;&lt;BR /&gt;Succes&lt;BR /&gt;&lt;BR /&gt;Idriz</description>
      <pubDate>Sat, 13 Dec 2003 06:08:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851712#M104028</guid>
      <dc:creator>I.Delic</dc:creator>
      <dc:date>2003-12-13T06:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851713#M104029</link>
      <description>HP's find has a builtin xargs feature to avoid spawning rm for each file:&lt;BR /&gt;&lt;BR /&gt;find /dir -type f -mtime +28 -exec rm -f \+&lt;BR /&gt;&lt;BR /&gt;The result is similar to:&lt;BR /&gt;&lt;BR /&gt;find /dir -type f -mtime +28 | xargs rm -f&lt;BR /&gt;&lt;BR /&gt;I don't believe -ok works this way, but you can acheive that in this way:&lt;BR /&gt;&lt;BR /&gt;find /dir -type f -mtime +28 | xargs rm -i&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2003 18:52:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851713#M104029</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-12-18T18:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: script for remove file time basis</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851714#M104030</link>
      <description>thanks</description>
      <pubDate>Thu, 11 Aug 2005 05:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-remove-file-time-basis/m-p/4851714#M104030</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2005-08-11T05:47:42Z</dc:date>
    </item>
  </channel>
</rss>

