<?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: shell programming -&amp;gt; find files by size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760329#M259233</link>
    <description>Hi,&lt;BR /&gt;you can use:&lt;BR /&gt;cd &lt;YOUR_WORK_DIRECTORY&gt;&lt;BR /&gt;find . -type f 2&amp;gt;/dev/null | xargs ll|awk '$5&amp;gt;1932735283&amp;amp;&amp;amp;$5&amp;lt;=2147483648'&lt;BR /&gt;&lt;BR /&gt;It works on HP-UX 11i.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;ART&lt;/YOUR_WORK_DIRECTORY&gt;</description>
    <pubDate>Wed, 29 Mar 2006 05:04:10 GMT</pubDate>
    <dc:creator>Arturo Galbiati</dc:creator>
    <dc:date>2006-03-29T05:04:10Z</dc:date>
    <item>
      <title>shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760322#M259226</link>
      <description>Hello,&lt;BR /&gt;I need to write a script to find all files with a size between 1,8 GB and 2 GB and discover the type of filesystem they reside to.&lt;BR /&gt;Can anyone help me get an idea how to do???&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Christian</description>
      <pubDate>Tue, 28 Mar 2006 07:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760322#M259226</guid>
      <dc:creator>Christian Marquardt_1</dc:creator>
      <dc:date>2006-03-28T07:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760323#M259227</link>
      <description>find /dir_to_search -type f -exec ll -d {} \;| grep -v '^total' | awk '{if($5+0&amp;gt;100000000 || $5+0&amp;gt;800000000 || $5+0&amp;gt;200000000)print $0}'&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Mar 2006 07:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760323#M259227</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-28T07:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760324#M259228</link>
      <description>Christian,&lt;BR /&gt;find . -size +1800000c &amp;gt; /tmp/a.lis&lt;BR /&gt;find . -size +2000000c &amp;gt; /tmp/b.lis&lt;BR /&gt;sdiff -s /tmp/a.lis /tmp/b.lis&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Mar 2006 07:17:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760324#M259228</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-28T07:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760325#M259229</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;A start.&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;&lt;BR /&gt;du -k | sort -rn | more&lt;BR /&gt;&lt;BR /&gt;That will show you where the big files are.&lt;BR /&gt;&lt;BR /&gt;Then you get to use the find command&lt;BR /&gt;&lt;BR /&gt;see the parameters size -n (in blocks)&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt; find / -local -size +50 -print&lt;BR /&gt;&lt;BR /&gt;Adjust the size to come up with your list.&lt;BR /&gt;&lt;BR /&gt;The command will list the filesystem.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Mar 2006 07:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760325#M259229</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-03-28T07:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760326#M259230</link>
      <description>Hi Christian:&lt;BR /&gt;&lt;BR /&gt;Using 'find' to select files whose sizes fall into the range you seek is simple, as already mentioned.  'find' has all of the necessary logic to limit the ranges thusly:&lt;BR /&gt;&lt;BR /&gt;# find /tmp -xdev -size +100 -a -size -200 | xargs ls -l &lt;BR /&gt;&lt;BR /&gt;The above example would find all files in '/tmp' whose (c)haracter size was more than 100 and less than 200 characters.  That differentiation is done siwht the + and - operands before the size.  The manpages for 'find' describe more details.&lt;BR /&gt;&lt;BR /&gt;To determine the *type* of filesystem in which your directory resides, you can use 'fstyp' on its special device file.  Most usually, today, the filesystem is going to be 'vxfs'.&lt;BR /&gt;&lt;BR /&gt;The use of 'xdev' in the above 'find' prevents 'find' from crossing mountpoints.  You can also instruct 'find' to confine its returned files to specific filesystem types (CDFS, HFS or NFS) by using the '-fstype' argument to 'find'.  See again, the manpages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 28 Mar 2006 08:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760326#M259230</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-28T08:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760327#M259231</link>
      <description>Hi Christian Marquardt  ,&lt;BR /&gt;&lt;BR /&gt;Use this command to list all files from size largest first :&lt;BR /&gt;&lt;BR /&gt;# ls -lR | sort +4 -5nr | more&lt;BR /&gt;&lt;BR /&gt;Hope this will help ,&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 28 Mar 2006 08:23:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760327#M259231</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-03-28T08:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760328#M259232</link>
      <description>You can also use the find command with xdev , to search that mountpint ,as given above postings.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 28 Mar 2006 08:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760328#M259232</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-03-28T08:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: shell programming -&gt; find files by size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760329#M259233</link>
      <description>Hi,&lt;BR /&gt;you can use:&lt;BR /&gt;cd &lt;YOUR_WORK_DIRECTORY&gt;&lt;BR /&gt;find . -type f 2&amp;gt;/dev/null | xargs ll|awk '$5&amp;gt;1932735283&amp;amp;&amp;amp;$5&amp;lt;=2147483648'&lt;BR /&gt;&lt;BR /&gt;It works on HP-UX 11i.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;ART&lt;/YOUR_WORK_DIRECTORY&gt;</description>
      <pubDate>Wed, 29 Mar 2006 05:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-programming-gt-find-files-by-size/m-p/3760329#M259233</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-03-29T05:04:10Z</dc:date>
    </item>
  </channel>
</rss>

