<?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: How to delete empty subdirectories in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-delete-empty-subdirectories/m-p/2427927#M2001</link>
    <description>A rather brute force way is to:&lt;BR /&gt;&lt;BR /&gt;find &lt;SOME_PLACE&gt; -xdev -type d -exec rmdir {} ; 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;What this does is to remove all directories that are empty and bypass any directories that contain files or other directories. rmdir will not remove a directory which has files or other directories. The 2&amp;gt; /dev/null eliminates the error message from rmdir when a directory is not empty.  -xdev prevents going below a mountpoint for another filesystem.&lt;/SOME_PLACE&gt;</description>
    <pubDate>Wed, 28 Jun 2000 01:25:08 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2000-06-28T01:25:08Z</dc:date>
    <item>
      <title>How to delete empty subdirectories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-delete-empty-subdirectories/m-p/2427926#M2000</link>
      <description>Does any one know a quick way to find all empty subdirectories under a given directory (/mydir) and delete them?  I tried the following command and it only work for some:&lt;BR /&gt;&lt;BR /&gt;find /mydir -type d -size 2 -exec rmdir -f {} ;&lt;BR /&gt;&lt;BR /&gt;-size 1 does not work for all either.</description>
      <pubDate>Tue, 27 Jun 2000 23:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-delete-empty-subdirectories/m-p/2427926#M2000</guid>
      <dc:creator>CKT</dc:creator>
      <dc:date>2000-06-27T23:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty subdirectories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-delete-empty-subdirectories/m-p/2427927#M2001</link>
      <description>A rather brute force way is to:&lt;BR /&gt;&lt;BR /&gt;find &lt;SOME_PLACE&gt; -xdev -type d -exec rmdir {} ; 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;What this does is to remove all directories that are empty and bypass any directories that contain files or other directories. rmdir will not remove a directory which has files or other directories. The 2&amp;gt; /dev/null eliminates the error message from rmdir when a directory is not empty.  -xdev prevents going below a mountpoint for another filesystem.&lt;/SOME_PLACE&gt;</description>
      <pubDate>Wed, 28 Jun 2000 01:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-delete-empty-subdirectories/m-p/2427927#M2001</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-06-28T01:25:08Z</dc:date>
    </item>
  </channel>
</rss>

