<?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: mtime in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549142#M370381</link>
    <description>Just in case there are old directories, I would use rm -f rather than rm -rf. And if you really want to remove files only then add -type f to the find command:&lt;BR /&gt; &lt;BR /&gt;(always look at the selection first)&lt;BR /&gt;find . -type f -mtime +1 -exec ll {} +&lt;BR /&gt; &lt;BR /&gt;find . -type f -mtime +1 -exec rm -f {} +</description>
    <pubDate>Sun, 13 Dec 2009 20:37:21 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2009-12-13T20:37:21Z</dc:date>
    <item>
      <title>mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549139#M370378</link>
      <description>Hi Admns,&lt;BR /&gt;&lt;BR /&gt;I want to delete files 1 day old.Can i use mtime +1 along with find command for the same?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;himacs&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Dec 2009 12:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549139#M370378</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-12-13T12:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549140#M370379</link>
      <description>-mtime +1 will delete files two or more days old:&lt;BR /&gt;find path -mtime +1 -exec rm -rf +</description>
      <pubDate>Sun, 13 Dec 2009 13:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549140#M370379</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-13T13:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549141#M370380</link>
      <description>cd /folder_name&lt;BR /&gt;&lt;BR /&gt;find . -mtime +1 -exec ll {} \; -&amp;gt; list file older than 1 day&lt;BR /&gt;&lt;BR /&gt;find . -mtime +1 -exec rm -rf {} \; -&amp;gt; delete /remove files older than 1 day</description>
      <pubDate>Sun, 13 Dec 2009 13:54:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549141#M370380</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-12-13T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549142#M370381</link>
      <description>Just in case there are old directories, I would use rm -f rather than rm -rf. And if you really want to remove files only then add -type f to the find command:&lt;BR /&gt; &lt;BR /&gt;(always look at the selection first)&lt;BR /&gt;find . -type f -mtime +1 -exec ll {} +&lt;BR /&gt; &lt;BR /&gt;find . -type f -mtime +1 -exec rm -f {} +</description>
      <pubDate>Sun, 13 Dec 2009 20:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549142#M370381</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-12-13T20:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549143#M370382</link>
      <description>Admins,&lt;BR /&gt;&lt;BR /&gt;Actually i set -mtime +1 to delete the 1 day old files..but its deleteing 2 days old files..&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;himacs</description>
      <pubDate>Mon, 14 Dec 2009 08:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549143#M370382</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-12-14T08:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549144#M370383</link>
      <description>Actually i set -mtime +1 to delete the 1 day old files..but its deleteing 2 days old files..&lt;BR /&gt;&lt;BR /&gt;can you post the "command" ?&lt;BR /&gt;&lt;BR /&gt;its better to ll -list file before you delete  them so that you can double check your excution</description>
      <pubDate>Mon, 14 Dec 2009 08:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549144#M370383</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-12-14T08:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549145#M370384</link>
      <description>Hi Himacs,&lt;BR /&gt;&lt;BR /&gt;-mtime +5 more than 5 days&lt;BR /&gt;-mtime -5 for less than 5 days&lt;BR /&gt;-mtime 5 for exactly 5 days&lt;BR /&gt;&lt;BR /&gt;Regds..&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Dec 2009 08:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549145#M370384</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-12-14T08:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549146#M370385</link>
      <description>&amp;gt;I set -mtime +1 to delete the 1 day old files but it's deleting 2 days old files.&lt;BR /&gt;&lt;BR /&gt;That's what I said, +1 means two or more.  Unless you use:&lt;BR /&gt;UNIX95=FIDDLE_WITH_FIND_TIMES find ... -mtime +1 ...&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1389161" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1389161&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1306285" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1306285&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Dec 2009 20:49:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549146#M370385</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-14T20:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: mtime</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549147#M370386</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] Can i use mtime +1 along with find&lt;BR /&gt;&amp;gt; command [...]&lt;BR /&gt;&lt;BR /&gt;Why not try a Forum search for keywords like,&lt;BR /&gt;say,&lt;BR /&gt;      find mtime&lt;BR /&gt;and learn all this for yourself?&lt;BR /&gt;&lt;BR /&gt;Look first, ask later?  Only a thought.</description>
      <pubDate>Tue, 15 Dec 2009 04:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mtime/m-p/4549147#M370386</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-15T04:40:42Z</dc:date>
    </item>
  </channel>
</rss>

