<?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 Perl help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3928961#M97263</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am writing a perl script that reads the attached csv file which has 2 columns of ID and date.&lt;BR /&gt;&lt;BR /&gt;The script should output the rows that have same IDs for different dates. The output for the attached input should be:&lt;BR /&gt;&lt;BR /&gt;69 20061224&lt;BR /&gt;69 20061226&lt;BR /&gt;69 20061228&lt;BR /&gt;300 20061223&lt;BR /&gt;300 20061228&lt;BR /&gt;550 20061229&lt;BR /&gt;550 20070102&lt;BR /&gt;&lt;BR /&gt;In my script i have a hash that stores the value of the ID and the date but somehow I am not able to figure the logic for matching the rows for the same ID.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Pat&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Jan 2007 03:15:15 GMT</pubDate>
    <dc:creator>Pat Tom</dc:creator>
    <dc:date>2007-01-19T03:15:15Z</dc:date>
    <item>
      <title>Perl help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3928961#M97263</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am writing a perl script that reads the attached csv file which has 2 columns of ID and date.&lt;BR /&gt;&lt;BR /&gt;The script should output the rows that have same IDs for different dates. The output for the attached input should be:&lt;BR /&gt;&lt;BR /&gt;69 20061224&lt;BR /&gt;69 20061226&lt;BR /&gt;69 20061228&lt;BR /&gt;300 20061223&lt;BR /&gt;300 20061228&lt;BR /&gt;550 20061229&lt;BR /&gt;550 20070102&lt;BR /&gt;&lt;BR /&gt;In my script i have a hash that stores the value of the ID and the date but somehow I am not able to figure the logic for matching the rows for the same ID.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Pat&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2007 03:15:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3928961#M97263</guid>
      <dc:creator>Pat Tom</dc:creator>
      <dc:date>2007-01-19T03:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Perl help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3928962#M97264</link>
      <description>&amp;gt; perl -ne'($id,$date)=split/,/,$_;push@{$h{$id}},$_}END{for(values%h){@$_&amp;lt;2 and next;print for@$_}' xx.csv&lt;BR /&gt;69,20061224&lt;BR /&gt;69,20061226&lt;BR /&gt;69,20061228&lt;BR /&gt;550,20061229&lt;BR /&gt;550,20070102&lt;BR /&gt;300,20061223&lt;BR /&gt;300,20061228&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 19 Jan 2007 03:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-help/m-p/3928962#M97264</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2007-01-19T03:38:29Z</dc:date>
    </item>
  </channel>
</rss>

