<?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: rows to column in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6425652#M496512</link>
    <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the reply.&lt;/P&gt;&lt;P&gt;I used awk -F':' and extracted the second filed and then did a #paste -d"," - - -&amp;nbsp; &amp;lt; details.txt , to generate the required csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2014 12:54:23 GMT</pubDate>
    <dc:creator>DeafFrog</dc:creator>
    <dc:date>2014-03-26T12:54:23Z</dc:date>
    <item>
      <title>rows to column</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6421108#M496510</link>
      <description>hi Gurus ,&lt;BR /&gt;&lt;BR /&gt;I have a file with entries as below:&lt;BR /&gt;&lt;BR /&gt;var1:mango&lt;BR /&gt;quantity:w1245&lt;BR /&gt;season: alphanso&lt;BR /&gt;var1:apple&lt;BR /&gt;quantity:c324&lt;BR /&gt;season:winter&lt;BR /&gt;var1:cherry&lt;BR /&gt;quantity:b4326&lt;BR /&gt;season:autumn&lt;BR /&gt;....&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;I want the file o/p like&lt;BR /&gt;&lt;BR /&gt;var1 quantity season&lt;BR /&gt;&lt;BR /&gt;mango w1245 alphanso&lt;BR /&gt;apple c324 winter&lt;BR /&gt;cherry b4326 autumn&lt;BR /&gt;mango b67588 spring&lt;BR /&gt;....&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Many thanks ,</description>
      <pubDate>Fri, 21 Mar 2014 21:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6421108#M496510</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2014-03-21T21:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: rows to column</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6421124#M496511</link>
      <description>&lt;P&gt;Assuming you have no spaces in the file and the three lines are always in that order:&lt;/P&gt;&lt;P&gt;awk -F:&amp;nbsp; '&lt;BR /&gt;{&lt;BR /&gt;var1 = $2&lt;BR /&gt;getline&lt;BR /&gt;quantity = $2&lt;BR /&gt;getline&lt;BR /&gt;season = $2&lt;BR /&gt;print var1, quantity, season&lt;BR /&gt;}' input-file&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 22:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6421124#M496511</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-03-21T22:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: rows to column</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6425652#M496512</link>
      <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the reply.&lt;/P&gt;&lt;P&gt;I used awk -F':' and extracted the second filed and then did a #paste -d"," - - -&amp;nbsp; &amp;lt; details.txt , to generate the required csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6425652#M496512</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2014-03-26T12:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: rows to column</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6426552#M496513</link>
      <description>&lt;P&gt;&amp;gt;I used awk -F':' and extracted the second field and then did a paste&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You didn't need to use both awk and paste, you can do it all in awk by changing OFS to comma:&lt;/P&gt;&lt;P&gt;awk -F:&amp;nbsp; -v OFS="," ' ....&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 03:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rows-to-column/m-p/6426552#M496513</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-03-27T03:46:03Z</dc:date>
    </item>
  </channel>
</rss>

