<?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: find older files in a folder by specific date in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041761#M432972</link>
    <description>Shafi,&lt;BR /&gt;how about:&lt;BR /&gt;find /dir -xdev -ctime +183 -type f -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;But, I would recommend running the command below FIRST, to check the list of files that will be removed:&lt;BR /&gt;&lt;BR /&gt;find /dir -xdev -ctime +183 -type f -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;/dir would be the location of the directories.&lt;BR /&gt;Please read "man find" for further info.&lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 23 Apr 2007 02:23:04 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2007-04-23T02:23:04Z</dc:date>
    <item>
      <title>find older files in a folder by specific date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041760#M432971</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I have a folder and sub folder, where there are more than 1000 files. The oldest file is one year old. I want to delete files that are more than 6 months old. &lt;BR /&gt;&lt;BR /&gt;1) How can i find those files?&lt;BR /&gt;2) How can i delete those files?&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shafi</description>
      <pubDate>Mon, 23 Apr 2007 01:33:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041760#M432971</guid>
      <dc:creator>Md. Shafiullah</dc:creator>
      <dc:date>2007-04-23T01:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: find older files in a folder by specific date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041761#M432972</link>
      <description>Shafi,&lt;BR /&gt;how about:&lt;BR /&gt;find /dir -xdev -ctime +183 -type f -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;But, I would recommend running the command below FIRST, to check the list of files that will be removed:&lt;BR /&gt;&lt;BR /&gt;find /dir -xdev -ctime +183 -type f -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;/dir would be the location of the directories.&lt;BR /&gt;Please read "man find" for further info.&lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Apr 2007 02:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041761#M432972</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-04-23T02:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: find older files in a folder by specific date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041762#M432973</link>
      <description>Hi Shafi,&lt;BR /&gt;&lt;BR /&gt;Try  this command ,this will list the oldfile modified before 186 days.&lt;BR /&gt;&lt;BR /&gt;find  &lt;DIR&gt;  -mtime  +186  -exec  ll {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIR&gt;</description>
      <pubDate>Mon, 23 Apr 2007 02:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041762#M432973</guid>
      <dc:creator>SAJ_3</dc:creator>
      <dc:date>2007-04-23T02:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: find older files in a folder by specific date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041763#M432974</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help. I actually found the following commands very usefull.&lt;BR /&gt;&lt;BR /&gt;find ./ ! -newer /tmp/timeref -exec ls {}\;&lt;BR /&gt;&lt;BR /&gt;Here /tmp/timeref file is the reference file which has the time stamp.</description>
      <pubDate>Mon, 23 Apr 2007 03:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-older-files-in-a-folder-by-specific-date/m-p/5041763#M432974</guid>
      <dc:creator>Md. Shafiullah</dc:creator>
      <dc:date>2007-04-23T03:05:45Z</dc:date>
    </item>
  </channel>
</rss>

