<?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 to walk through subdirectoy in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187078#M164002</link>
    <description>A minor note:&lt;BR /&gt;&lt;BR /&gt;It's more efficient to pipe find's output to xargs. (find ... | xargs rm -f).&lt;BR /&gt;&lt;BR /&gt;If you have many files, xargs will only be invoked a few times, whereas rm (from -exec rm) will be invoked many times.&lt;BR /&gt;&lt;BR /&gt;Just a minor note.&lt;BR /&gt;&lt;BR /&gt;JP.</description>
    <pubDate>Tue, 10 Feb 2004 02:38:21 GMT</pubDate>
    <dc:creator>Jeroen Peereboom</dc:creator>
    <dc:date>2004-02-10T02:38:21Z</dc:date>
    <item>
      <title>script to walk through subdirectoy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187074#M163998</link>
      <description>I need to walk through all the subdirectory of /Data&lt;BR /&gt;for each subdirectory I need to purge out somefile if it is older than 30 days.&lt;BR /&gt;&lt;BR /&gt;The deletion I have done but just wondering how could I walk thourgh each subdirectory of /Data.  I have only one level of subdirectory to wallk through</description>
      <pubDate>Mon, 09 Feb 2004 23:28:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187074#M163998</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2004-02-09T23:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: script to walk through subdirectoy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187075#M163999</link>
      <description>try using find command with -type f -mtime +30 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;This will go within subdirectories. Or before actually deleting you can just list them using find command with -exec ll&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Feb 2004 23:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187075#M163999</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2004-02-09T23:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: script to walk through subdirectoy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187076#M164000</link>
      <description>Also, you can use "ls -lR" which is recursive long listing for examining the content. Also "du" command will list all the files including subdirectories and files with their size.&lt;BR /&gt;&lt;BR /&gt;Also, use find command with -mtime option, (best way to find and delete) as posted by previous poster.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vijay</description>
      <pubDate>Mon, 09 Feb 2004 23:42:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187076#M164000</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-02-09T23:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: script to walk through subdirectoy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187077#M164001</link>
      <description>List all the files&lt;BR /&gt;#find &lt;DIR&gt; -type f -mtime +30 -exec ll {} \;&lt;BR /&gt;#find &lt;DIR&gt; -type d -mtime +30 -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Make sure those files are not required then you can remove them using&lt;BR /&gt;&lt;BR /&gt;#find &lt;DIR&gt; -type f -mtime +30 -exec rm {} \;&lt;/DIR&gt;&lt;/DIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Tue, 10 Feb 2004 00:39:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187077#M164001</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-02-10T00:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: script to walk through subdirectoy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187078#M164002</link>
      <description>A minor note:&lt;BR /&gt;&lt;BR /&gt;It's more efficient to pipe find's output to xargs. (find ... | xargs rm -f).&lt;BR /&gt;&lt;BR /&gt;If you have many files, xargs will only be invoked a few times, whereas rm (from -exec rm) will be invoked many times.&lt;BR /&gt;&lt;BR /&gt;Just a minor note.&lt;BR /&gt;&lt;BR /&gt;JP.</description>
      <pubDate>Tue, 10 Feb 2004 02:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-walk-through-subdirectoy/m-p/3187078#M164002</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-02-10T02:38:21Z</dc:date>
    </item>
  </channel>
</rss>

