<?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: Need help with script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984437#M420601</link>
    <description>ps -ef | grep -v grep | grep &lt;WHATEVER you=""&gt; | wc -l&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep -v grep | grep &lt;WHATEVER you=""&gt; | wc -c&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;What are you looking to do so I can refine that basic one-liner?&lt;/WHATEVER&gt;&lt;/WHATEVER&gt;</description>
    <pubDate>Fri, 09 Jun 2006 10:35:50 GMT</pubDate>
    <dc:creator>TKeller</dc:creator>
    <dc:date>2006-06-09T10:35:50Z</dc:date>
    <item>
      <title>Need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984436#M420600</link>
      <description>Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;I have to make a script in which I have take a word count of 39 processes.which is the easiest way to take the work count with the help of unix script.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Hunki</description>
      <pubDate>Fri, 09 Jun 2006 10:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984436#M420600</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-06-09T10:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984437#M420601</link>
      <description>ps -ef | grep -v grep | grep &lt;WHATEVER you=""&gt; | wc -l&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep -v grep | grep &lt;WHATEVER you=""&gt; | wc -c&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;What are you looking to do so I can refine that basic one-liner?&lt;/WHATEVER&gt;&lt;/WHATEVER&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984437#M420601</guid>
      <dc:creator>TKeller</dc:creator>
      <dc:date>2006-06-09T10:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984438#M420602</link>
      <description>The command is 'wc -w'&lt;BR /&gt;&lt;BR /&gt;Execute the command to list process and pipe that to wc -w&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;ps -ef | wc -w&lt;BR /&gt;&lt;BR /&gt;This will list all of the processes and provide count of the number of words.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984438#M420602</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-06-09T10:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984439#M420603</link>
      <description>I have a list of 39 processes which are existent on the system with the same name in multiple counts. What I mean is that each of the 39 processes have multiple processes by the same name.Like processes X Y Z, then X may be present 5 times.So I need to do a word count on each one of them, is it possible to put them in a file as a list and then get their word with the help of xargs.</description>
      <pubDate>Fri, 09 Jun 2006 10:42:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984439#M420603</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-06-09T10:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984440#M420604</link>
      <description>ps -e |awk '{print $4}' |uniq -c |sort</description>
      <pubDate>Fri, 09 Jun 2006 10:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984440#M420604</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-09T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984441#M420605</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;&lt;BR /&gt;for p in $(cat list-o-procs)&lt;BR /&gt;do&lt;BR /&gt;   num=$(ps -ef | grep ${p} | grep -v grep | wc -l)&lt;BR /&gt;   printf "%s %d\n" ${p} ${num}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2006 10:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984441#M420605</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-06-09T10:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984442#M420606</link>
      <description>Thanks Doug!</description>
      <pubDate>Fri, 09 Jun 2006 11:17:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-script/m-p/4984442#M420606</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-06-09T11:17:35Z</dc:date>
    </item>
  </channel>
</rss>

