<?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: remove in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561356#M226583</link>
    <description>You can also try as,&lt;BR /&gt;&lt;BR /&gt;$cd /tmp;find . \( -name . \) -mtime +8 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;$cd /tmp;find . \( -name . \) -mtime +8 | xargs rm -f&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth.</description>
    <pubDate>Fri, 10 Jun 2005 06:10:38 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-06-10T06:10:38Z</dc:date>
    <item>
      <title>remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561349#M226576</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i just want this script to search for files only and remove it, not goes down to folder level.&lt;BR /&gt;can someone help please.&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$find /tmp –mtime +8 –exec rm {} \;</description>
      <pubDate>Thu, 09 Jun 2005 11:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561349#M226576</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-06-09T11:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561350#M226577</link>
      <description>if you do not want to delete the files under the directories just at the /tmp level&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;for file in `ls -1`&lt;BR /&gt;do&lt;BR /&gt;if [ -f ${file} ]&lt;BR /&gt;then&lt;BR /&gt;rm $file&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this should do it. A bit longer but safe way of removing only regular files not anything else.</description>
      <pubDate>Thu, 09 Jun 2005 11:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561350#M226577</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-06-09T11:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561351#M226578</link>
      <description>find /tmp/* -prune -mtime +8 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;I think that gives what you want!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 09 Jun 2005 11:21:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561351#M226578</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-06-09T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561352#M226579</link>
      <description>sorry.. I did not notice the 8 days modification time part. I am not sure right off the top of my head not to incorporate it into my little code snippet&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jun 2005 11:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561352#M226579</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-06-09T11:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561353#M226580</link>
      <description>Better yet:&lt;BR /&gt;&lt;BR /&gt;find /tmp/* -prune -mtime +8 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Try it with ll instead of rm first.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 09 Jun 2005 11:24:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561353#M226580</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-06-09T11:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561354#M226581</link>
      <description>thanks-Mel and Pete.&lt;BR /&gt;&lt;BR /&gt;Pete, that is what i am looking for &lt;BR /&gt;&lt;BR /&gt;Thanks all.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 09 Jun 2005 11:47:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561354#M226581</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-06-09T11:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561355#M226582</link>
      <description>I just noticed that I cut and pasted the exact same command.  Meant to say:&lt;BR /&gt;&lt;BR /&gt;find /tmp/* -type f -prune -mtime +8 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 10 Jun 2005 05:25:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561355#M226582</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-06-10T05:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561356#M226583</link>
      <description>You can also try as,&lt;BR /&gt;&lt;BR /&gt;$cd /tmp;find . \( -name . \) -mtime +8 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;$cd /tmp;find . \( -name . \) -mtime +8 | xargs rm -f&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 10 Jun 2005 06:10:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561356#M226583</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-10T06:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561357#M226584</link>
      <description>Just to protect unwanted files from getting deleted, I always code the -exec rm as -exec echo rm so I can see what will happen without actually removing anything. If it works correctly, then repeat the command without the echo.</description>
      <pubDate>Fri, 10 Jun 2005 21:40:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove/m-p/3561357#M226584</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-06-10T21:40:19Z</dc:date>
    </item>
  </channel>
</rss>

