<?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 Command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242593#M677073</link>
    <description>You can do it by script&lt;BR /&gt;&lt;BR /&gt;this script might work&lt;BR /&gt;&lt;BR /&gt;nohup find . -name "R*.ulog.gz" | xargs zgrep -i "SEARCHCONTENT" | cut -f 1 -d ' ' &amp;gt;/tmp/findout &amp;amp;&lt;BR /&gt;while TRUE=ITRC;&lt;BR /&gt;do&lt;BR /&gt;SPACE=`du -sk /tmp/findout | awk '{print $1}'`&lt;BR /&gt;if [ "51200" -le "$SPACE" ]&lt;BR /&gt;then&lt;BR /&gt;echo "PROCESS ID $!"&lt;BR /&gt;echo "OVER SIZE STOPPING FIND PROCESS"&lt;BR /&gt;exit 0&lt;BR /&gt;else&lt;BR /&gt;echo "SIZE UNDER 50 MB"&lt;BR /&gt;fi&lt;BR /&gt;sleep 1&lt;BR /&gt;done&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Jul 2008 09:04:55 GMT</pubDate>
    <dc:creator>Masud Parvez</dc:creator>
    <dc:date>2008-07-30T09:04:55Z</dc:date>
    <item>
      <title>Find Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242591#M677071</link>
      <description>I am using the below find command in my code and i am redirecting the  output to a file findout in the /tmp folder.  I am concerned about the disk space of the tmp folder. It's now having 459 MB free space. I want to check if the output of find command is below 50 MB redirect the output to the findout file in /tmp folder otherwise throw a message "find out exceeded 50 MB limit" How can i do it?&lt;BR /&gt;find . -name "R*.ulog.gz"  |  xargs zgrep -i  "SEARCHCONTENT" | cut -f 1 -d ' ' &amp;gt;/tmp/findout</description>
      <pubDate>Wed, 30 Jul 2008 05:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242591#M677071</guid>
      <dc:creator>scott5555</dc:creator>
      <dc:date>2008-07-30T05:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242592#M677072</link>
      <description>&amp;gt;otherwise throw a message "find out exceeded 50 MB limit" How can i do it?&lt;BR /&gt;&lt;BR /&gt;There are no good ways to do this without doing the find twice.  Or read it all in memory and stop if too large.&lt;BR /&gt;Or put the file elsewhere and then move it to /tmp if &amp;lt; 50 Mb.</description>
      <pubDate>Wed, 30 Jul 2008 07:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242592#M677072</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-30T07:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242593#M677073</link>
      <description>You can do it by script&lt;BR /&gt;&lt;BR /&gt;this script might work&lt;BR /&gt;&lt;BR /&gt;nohup find . -name "R*.ulog.gz" | xargs zgrep -i "SEARCHCONTENT" | cut -f 1 -d ' ' &amp;gt;/tmp/findout &amp;amp;&lt;BR /&gt;while TRUE=ITRC;&lt;BR /&gt;do&lt;BR /&gt;SPACE=`du -sk /tmp/findout | awk '{print $1}'`&lt;BR /&gt;if [ "51200" -le "$SPACE" ]&lt;BR /&gt;then&lt;BR /&gt;echo "PROCESS ID $!"&lt;BR /&gt;echo "OVER SIZE STOPPING FIND PROCESS"&lt;BR /&gt;exit 0&lt;BR /&gt;else&lt;BR /&gt;echo "SIZE UNDER 50 MB"&lt;BR /&gt;fi&lt;BR /&gt;sleep 1&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jul 2008 09:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242593#M677073</guid>
      <dc:creator>Masud Parvez</dc:creator>
      <dc:date>2008-07-30T09:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Find Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242594#M677074</link>
      <description>Single find command will not suffice this requirement.&lt;BR /&gt;&lt;BR /&gt;Dennis is right you have to use find twice.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:52:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/4242594#M677074</guid>
      <dc:creator>Deepak Kr</dc:creator>
      <dc:date>2008-07-30T11:52:23Z</dc:date>
    </item>
  </channel>
</rss>

