<?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: Help on perl join in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-join/m-p/5073975#M49081</link>
    <description>&lt;!--!*#--&gt;Hi JC:&lt;BR /&gt;&lt;BR /&gt;# cat ./myjoin&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my $i = 0;&lt;BR /&gt;my @line;&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;    chomp;&lt;BR /&gt;    $i++;&lt;BR /&gt;    if ( $i &amp;lt;= 3 ) {&lt;BR /&gt;        push @line, $_;&lt;BR /&gt;    }&lt;BR /&gt;    else {&lt;BR /&gt;        $i = 1;&lt;BR /&gt;        print "@line\n";&lt;BR /&gt;        @line = ();&lt;BR /&gt;        push @line, $_;&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;print "@line\n" if @line;&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;...run as:&lt;BR /&gt;&lt;BR /&gt;./myjoin file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Fri, 12 Oct 2007 15:07:30 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-10-12T15:07:30Z</dc:date>
    <item>
      <title>Help on perl join</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-join/m-p/5073974#M49080</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I have text file as follow.  I need help in joining three(3) lines.&lt;BR /&gt;&lt;BR /&gt;9/1/2007 0:00&lt;BR /&gt;4.00&lt;BR /&gt;3.38&lt;BR /&gt;9/2/2007 0:00&lt;BR /&gt;3.86&lt;BR /&gt;2.95&lt;BR /&gt;9/3/2007 0:00&lt;BR /&gt;3.90&lt;BR /&gt;3.18&lt;BR /&gt;&lt;BR /&gt;Following are the result I'm looking for.&lt;BR /&gt;&lt;BR /&gt;9/1/2007 0:00 4.00 3.38&lt;BR /&gt;9/2/2007 0:00 3.86 2.95&lt;BR /&gt;9/3/2007 0:00 3.90 3.18&lt;BR /&gt;&lt;BR /&gt;Thanks, in advance.&lt;BR /&gt;&lt;BR /&gt;JC</description>
      <pubDate>Fri, 12 Oct 2007 13:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-perl-join/m-p/5073974#M49080</guid>
      <dc:creator>Junior C.</dc:creator>
      <dc:date>2007-10-12T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help on perl join</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-join/m-p/5073975#M49081</link>
      <description>&lt;!--!*#--&gt;Hi JC:&lt;BR /&gt;&lt;BR /&gt;# cat ./myjoin&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my $i = 0;&lt;BR /&gt;my @line;&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;    chomp;&lt;BR /&gt;    $i++;&lt;BR /&gt;    if ( $i &amp;lt;= 3 ) {&lt;BR /&gt;        push @line, $_;&lt;BR /&gt;    }&lt;BR /&gt;    else {&lt;BR /&gt;        $i = 1;&lt;BR /&gt;        print "@line\n";&lt;BR /&gt;        @line = ();&lt;BR /&gt;        push @line, $_;&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;print "@line\n" if @line;&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;...run as:&lt;BR /&gt;&lt;BR /&gt;./myjoin file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 12 Oct 2007 15:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-perl-join/m-p/5073975#M49081</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-10-12T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help on perl join</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-join/m-p/5073976#M49082</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I appreciate your reply.  Thank, for the script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thread Close&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JC</description>
      <pubDate>Fri, 12 Oct 2007 17:54:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-perl-join/m-p/5073976#M49082</guid>
      <dc:creator>Junior C.</dc:creator>
      <dc:date>2007-10-12T17:54:50Z</dc:date>
    </item>
  </channel>
</rss>

