<?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: finding   zero kb files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486949#M363263</link>
    <description>you could try:&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . -size 0 -type f&lt;BR /&gt;&lt;BR /&gt;and of course for a total:&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . -size 0 -type f | wc -l&lt;BR /&gt;&lt;BR /&gt;of course that find will walk sub-dirs, so if you want to exclude those try:&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . \( ! -name . -prune \) -size 0 -type f&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . \( ! -name . -prune \) -size 0 -type f | wc -l&lt;BR /&gt;&lt;BR /&gt;My find syntax is pretty lame though, so there may be a better way to get that...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 27 Aug 2009 07:54:14 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2009-08-27T07:54:14Z</dc:date>
    <item>
      <title>finding   zero kb files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486947#M363261</link>
      <description>i need to list the 0kb files in a particular dir &lt;BR /&gt;&lt;BR /&gt;and need to know how many files present,,, how can i do it</description>
      <pubDate>Thu, 27 Aug 2009 06:57:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486947#M363261</guid>
      <dc:creator>madhudeepan</dc:creator>
      <dc:date>2009-08-27T06:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: finding   zero kb files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486948#M363262</link>
      <description>&lt;!--!*#--&gt;Files have sizes in bytes.  What is 0 Kb?  Something that is less than 512, or exactly 0 bytes?&lt;BR /&gt;&lt;BR /&gt;You could use "ls directory | wc -l" to count the files.&lt;BR /&gt;&lt;BR /&gt;You could use awk to do both:&lt;BR /&gt;ll directory | awk '&lt;BR /&gt;BEGIN { count = 0 }&lt;BR /&gt;NF &amp;gt;= 9 {&lt;BR /&gt;   count += 1&lt;BR /&gt;   if ($5 &amp;lt; 512) print $0&lt;BR /&gt;}&lt;BR /&gt;END { print "Total files:", count } '</description>
      <pubDate>Thu, 27 Aug 2009 07:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486948#M363262</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-27T07:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: finding   zero kb files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486949#M363263</link>
      <description>you could try:&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . -size 0 -type f&lt;BR /&gt;&lt;BR /&gt;and of course for a total:&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . -size 0 -type f | wc -l&lt;BR /&gt;&lt;BR /&gt;of course that find will walk sub-dirs, so if you want to exclude those try:&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . \( ! -name . -prune \) -size 0 -type f&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;cd /mydir&lt;BR /&gt;find . \( ! -name . -prune \) -size 0 -type f | wc -l&lt;BR /&gt;&lt;BR /&gt;My find syntax is pretty lame though, so there may be a better way to get that...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2009 07:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486949#M363263</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-08-27T07:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: finding   zero kb files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486950#M363264</link>
      <description>&amp;gt;Duncan: My find syntax is pretty lame though, so there may be a better way to get that.&lt;BR /&gt;&lt;BR /&gt;You could remove the \( \), since the default is "-a".</description>
      <pubDate>Thu, 27 Aug 2009 08:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486950#M363264</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-27T08:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: finding   zero kb files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486951#M363265</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find / -size 0 -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;sunny</description>
      <pubDate>Thu, 27 Aug 2009 08:58:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486951#M363265</guid>
      <dc:creator>Sunny123_1</dc:creator>
      <dc:date>2009-08-27T08:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: finding   zero kb files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486952#M363266</link>
      <description>Hi,&lt;BR /&gt;cd &lt;YOUR dir=""&gt;&lt;BR /&gt;ls -l|awk '$9&amp;amp;&amp;amp;!$5 {print $0;i++} END { print i}'&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;/YOUR&gt;</description>
      <pubDate>Fri, 28 Aug 2009 08:48:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-zero-kb-files/m-p/4486952#M363266</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2009-08-28T08:48:07Z</dc:date>
    </item>
  </channel>
</rss>

