<?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 perl script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-perl-script/m-p/3784153#M263689</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Use hashes like this:&lt;BR /&gt;&lt;BR /&gt;# cat .hashit&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;    chomp;&lt;BR /&gt;    @a = split /\|/;&lt;BR /&gt;    $thing{$a [0]}++;&lt;BR /&gt;}&lt;BR /&gt;foreach $key (keys %thing) {&lt;BR /&gt;    print "$key count = $thing{$key}\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;...Run as ./hashit filename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 08 May 2006 06:47:50 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-05-08T06:47:50Z</dc:date>
    <item>
      <title>Need perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-perl-script/m-p/3784151#M263687</link>
      <description>data file looks like this:&lt;BR /&gt;&lt;BR /&gt;key|value&lt;BR /&gt;10|03&lt;BR /&gt;11|23&lt;BR /&gt;10|23&lt;BR /&gt;11|32&lt;BR /&gt;&lt;BR /&gt;need perl script with following output:&lt;BR /&gt;&lt;BR /&gt;Number of unique keys: = 2&lt;BR /&gt;&lt;BR /&gt;Total count of key 10 = 2  ( number of items)&lt;BR /&gt;Total count of key 11 = 2 (Number of items).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 May 2006 06:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-perl-script/m-p/3784151#M263687</guid>
      <dc:creator>Swetha reddy</dc:creator>
      <dc:date>2006-05-08T06:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-perl-script/m-p/3784152#M263688</link>
      <description># perl -nle'm{^\s*(\d+)\s*\|} and $k{$1}++}END{print"Number of unique keys:",scalar keys%k;$k{$_}&amp;gt;1&amp;amp;&amp;amp;print"Total count of key$_ = ",$k{$_}"for keys%k' logfile&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Mon, 08 May 2006 06:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-perl-script/m-p/3784152#M263688</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-05-08T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-perl-script/m-p/3784153#M263689</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Use hashes like this:&lt;BR /&gt;&lt;BR /&gt;# cat .hashit&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;    chomp;&lt;BR /&gt;    @a = split /\|/;&lt;BR /&gt;    $thing{$a [0]}++;&lt;BR /&gt;}&lt;BR /&gt;foreach $key (keys %thing) {&lt;BR /&gt;    print "$key count = $thing{$key}\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;...Run as ./hashit filename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 08 May 2006 06:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-perl-script/m-p/3784153#M263689</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-05-08T06:47:50Z</dc:date>
    </item>
  </channel>
</rss>

