<?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: find -size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097691#M146232</link>
    <description>Here is a great script we use... a local guy wrote this not me... so cant take credit for it.&lt;BR /&gt; &lt;BR /&gt;Syntax is:&lt;BR /&gt; &lt;BR /&gt;bigfiles &lt;DIR&gt; &lt;MBSIZE&gt;&lt;BR /&gt; &lt;BR /&gt;It will recursively search for files larger than &lt;MBSIZE&gt; in &lt;DIR&gt; as the starting point.&lt;BR /&gt;&lt;BR /&gt;------------- cut here ----------------------&lt;BR /&gt;# cat bigfiles&lt;BR /&gt; &lt;BR /&gt;# To find any file over a certain size in a given directory&lt;BR /&gt;# Primarily used to locate files which might be running a filesystem out of&lt;BR /&gt;# space.&lt;BR /&gt;#&lt;BR /&gt;# First parameter is the filesystem or directory to begin the search from&lt;BR /&gt;# Second parameter is the size of the file, in characters, to find&lt;BR /&gt;#&lt;BR /&gt; &lt;BR /&gt;#&lt;BR /&gt;if [ $# -eq 2 ]&lt;BR /&gt;then&lt;BR /&gt;        if [ -d $1 ]&lt;BR /&gt;        then&lt;BR /&gt;        #ls -l `find "${1}" -xdev -size +"${2}"c  -print`&lt;BR /&gt;        find "${1}" -xdev -size +"${2}"c  -print &amp;gt; /tmp/crslist$$&lt;BR /&gt;                if [ -s /tmp/crslist$$ ]&lt;BR /&gt;                then&lt;BR /&gt;                ls -l `cat /tmp/crslist$$`&lt;BR /&gt;                else&lt;BR /&gt;                echo "apparently no files that large in "${1}&lt;BR /&gt;                exit&lt;BR /&gt;                fi&lt;BR /&gt;        else&lt;BR /&gt;        echo "$1 is not a directory...try again"&lt;BR /&gt;        exit&lt;BR /&gt;        fi&lt;BR /&gt;else&lt;BR /&gt;echo "\n\nbigfiles requires 2 parameters..."&lt;BR /&gt;echo "\tthe first is the beginning directory"&lt;BR /&gt;echo "\tthe second is the size of the file to search for\n\n"&lt;BR /&gt;fi&lt;BR /&gt;############################################&lt;/DIR&gt;&lt;/MBSIZE&gt;&lt;/MBSIZE&gt;&lt;/DIR&gt;</description>
    <pubDate>Mon, 20 Oct 2003 14:16:12 GMT</pubDate>
    <dc:creator>Todd McDaniel_1</dc:creator>
    <dc:date>2003-10-20T14:16:12Z</dc:date>
    <item>
      <title>find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097688#M146229</link>
      <description>&lt;BR /&gt;What is the correct use of the -size parameter to find all files over 500Mb ?? &lt;BR /&gt;&lt;BR /&gt;I know this probably sounds trivial but I can't&lt;BR /&gt;seem to ge it to work correctly ...&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2003 14:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097688#M146229</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2003-10-20T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097689#M146230</link>
      <description>-size 100000000 (I think!)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2003 14:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097689#M146230</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-10-20T14:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097690#M146231</link>
      <description>To expand:&lt;BR /&gt;&lt;BR /&gt;1,000,000 one half KB blocks would give you 500,000KB, which should be 500MB.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2003 14:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097690#M146231</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-10-20T14:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097691#M146232</link>
      <description>Here is a great script we use... a local guy wrote this not me... so cant take credit for it.&lt;BR /&gt; &lt;BR /&gt;Syntax is:&lt;BR /&gt; &lt;BR /&gt;bigfiles &lt;DIR&gt; &lt;MBSIZE&gt;&lt;BR /&gt; &lt;BR /&gt;It will recursively search for files larger than &lt;MBSIZE&gt; in &lt;DIR&gt; as the starting point.&lt;BR /&gt;&lt;BR /&gt;------------- cut here ----------------------&lt;BR /&gt;# cat bigfiles&lt;BR /&gt; &lt;BR /&gt;# To find any file over a certain size in a given directory&lt;BR /&gt;# Primarily used to locate files which might be running a filesystem out of&lt;BR /&gt;# space.&lt;BR /&gt;#&lt;BR /&gt;# First parameter is the filesystem or directory to begin the search from&lt;BR /&gt;# Second parameter is the size of the file, in characters, to find&lt;BR /&gt;#&lt;BR /&gt; &lt;BR /&gt;#&lt;BR /&gt;if [ $# -eq 2 ]&lt;BR /&gt;then&lt;BR /&gt;        if [ -d $1 ]&lt;BR /&gt;        then&lt;BR /&gt;        #ls -l `find "${1}" -xdev -size +"${2}"c  -print`&lt;BR /&gt;        find "${1}" -xdev -size +"${2}"c  -print &amp;gt; /tmp/crslist$$&lt;BR /&gt;                if [ -s /tmp/crslist$$ ]&lt;BR /&gt;                then&lt;BR /&gt;                ls -l `cat /tmp/crslist$$`&lt;BR /&gt;                else&lt;BR /&gt;                echo "apparently no files that large in "${1}&lt;BR /&gt;                exit&lt;BR /&gt;                fi&lt;BR /&gt;        else&lt;BR /&gt;        echo "$1 is not a directory...try again"&lt;BR /&gt;        exit&lt;BR /&gt;        fi&lt;BR /&gt;else&lt;BR /&gt;echo "\n\nbigfiles requires 2 parameters..."&lt;BR /&gt;echo "\tthe first is the beginning directory"&lt;BR /&gt;echo "\tthe second is the size of the file to search for\n\n"&lt;BR /&gt;fi&lt;BR /&gt;############################################&lt;/DIR&gt;&lt;/MBSIZE&gt;&lt;/MBSIZE&gt;&lt;/DIR&gt;</description>
      <pubDate>Mon, 20 Oct 2003 14:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097691#M146232</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-20T14:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097692#M146233</link>
      <description>The criticxal thing to note is that find -size 100c will find files of exactly 100 characters while find -size +100c will find those above 100 characters. In your case,&lt;BR /&gt;&lt;BR /&gt;find . -type f -size +524288000c ...&lt;BR /&gt;will list those over 500MB.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2003 14:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097692#M146233</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-20T14:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097693#M146234</link>
      <description>I would just add the full command to stop crossing mount points. Comes in real handy when you want to only look in one filesystem.&lt;BR /&gt;&lt;BR /&gt;find . -xdev -size +524288000c  -depth -exec ls -l {} \;</description>
      <pubDate>Tue, 21 Oct 2003 07:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097693#M146234</guid>
      <dc:creator>Larry Basford</dc:creator>
      <dc:date>2003-10-21T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097694#M146235</link>
      <description>Thanks for all the help, but if I could ask one more question that I can't seem to get straight in my mind.... how is the -size parameter calculated ??? be it a 200Mb plus file or whatever, how are you coming up with the size parameter ??&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2003 08:05:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097694#M146235</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2003-10-21T08:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097695#M146236</link>
      <description>value followed by a c, the size is in bytes.&lt;BR /&gt;&lt;BR /&gt;250MB&lt;BR /&gt;&lt;BR /&gt;find . -size 265000000c -exec ll {} \;</description>
      <pubDate>Tue, 21 Oct 2003 08:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097695#M146236</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-10-21T08:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097696#M146237</link>
      <description>250 MB&lt;BR /&gt;#find . -size +262144000c -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2003 08:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097696#M146237</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-10-21T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: find -size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097697#M146238</link>
      <description>-size n[c]   True if the file is n blocks long (512 bytes per block). If n is followed by a c, the size is in bytes. and if preceded by +, means greater then.&lt;BR /&gt;&lt;BR /&gt;-size 1 will match 512 bytes&lt;BR /&gt;-size 1c will match 1 byte&lt;BR /&gt;-size +1 will match greater they 512 bytes&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Oct 2003 08:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-size/m-p/3097697#M146238</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-10-21T08:15:30Z</dc:date>
    </item>
  </channel>
</rss>

