<?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: Reformatting text in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444083#M682801</link>
    <description>Hi,&lt;BR /&gt;suppose your data stored on a file "d"&lt;BR /&gt;In the command prompt write this line,&lt;BR /&gt;&lt;BR /&gt;#awk '{ printf "%s", $0 }'&lt;D&gt;&lt;/D&gt;&lt;BR /&gt;if you want your output into another file then do like this&lt;BR /&gt;#awk '{ printf "%s", $0 }'&lt;D&gt;outputfile&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;/D&gt;</description>
    <pubDate>Mon, 22 Jun 2009 07:21:49 GMT</pubDate>
    <dc:creator>Suraj K Sankari</dc:creator>
    <dc:date>2009-06-22T07:21:49Z</dc:date>
    <item>
      <title>Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444081#M682799</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I received the following output after an SQL script:&lt;BR /&gt;&lt;BR /&gt;TradeId         CommonRef       MirrorId        TermAssignStatus        Book                            &lt;BR /&gt;P/S      Customer        Currency        Curve     Effective       Date                    &lt;BR /&gt;Maturity        Date     Notional        Amount    Product         Type    Rate            &lt;BR /&gt;Trade    Status   Sec      Amount    Trade    Date    Trader  ParentId        &lt;BR /&gt;Last     Update &lt;BR /&gt;&lt;BR /&gt;That's actually an excerpt, there are 22k entries with this format. Instead of those 8 columns what I'd need a single line with every entry being it's own column. I've attached a text file with the original format and how I'd like it reformatted.&lt;BR /&gt;&lt;BR /&gt;I've been trying awk but I can't seem to find the way to do it, can someone give me a tip on this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;&lt;BR /&gt;Ciro</description>
      <pubDate>Mon, 22 Jun 2009 06:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444081#M682799</guid>
      <dc:creator>Ciro_gft</dc:creator>
      <dc:date>2009-06-22T06:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444082#M682800</link>
      <description>Sprry I didn't include the file, here it is.</description>
      <pubDate>Mon, 22 Jun 2009 06:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444082#M682800</guid>
      <dc:creator>Ciro_gft</dc:creator>
      <dc:date>2009-06-22T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444083#M682801</link>
      <description>Hi,&lt;BR /&gt;suppose your data stored on a file "d"&lt;BR /&gt;In the command prompt write this line,&lt;BR /&gt;&lt;BR /&gt;#awk '{ printf "%s", $0 }'&lt;D&gt;&lt;/D&gt;&lt;BR /&gt;if you want your output into another file then do like this&lt;BR /&gt;#awk '{ printf "%s", $0 }'&lt;D&gt;outputfile&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;/D&gt;</description>
      <pubDate>Mon, 22 Jun 2009 07:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444083#M682801</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-22T07:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444084#M682802</link>
      <description>&lt;BR /&gt;Hi Suraj,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Mon, 22 Jun 2009 08:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444084#M682802</guid>
      <dc:creator>Ciro_gft</dc:creator>
      <dc:date>2009-06-22T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444085#M682803</link>
      <description>It appears you want to combine 5 lines into one, for 22 K entries?&lt;BR /&gt;awk '{&lt;BR /&gt;getline L2&lt;BR /&gt;getline L3&lt;BR /&gt;getline L4&lt;BR /&gt;getline L5&lt;BR /&gt;print $0, L2, L3, L4, L5 }' file</description>
      <pubDate>Mon, 22 Jun 2009 09:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444085#M682803</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-22T09:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444086#M682804</link>
      <description>&lt;BR /&gt;Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yes that's what I needed, thanks very much.</description>
      <pubDate>Mon, 22 Jun 2009 09:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444086#M682804</guid>
      <dc:creator>Ciro_gft</dc:creator>
      <dc:date>2009-06-22T09:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444087#M682805</link>
      <description>Hi Ciro:&lt;BR /&gt;&lt;BR /&gt;To combine multiple lines into one you can use 'paste'.&lt;BR /&gt;&lt;BR /&gt;# paste -d" " - - - - - &amp;lt; myfile&lt;BR /&gt;&lt;BR /&gt;See the manpages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Jun 2009 11:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444087#M682805</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-22T11:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting text</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444088#M682806</link>
      <description>from JRF: "# paste -d" " - - - - - &amp;lt; myfile"&lt;BR /&gt;&lt;BR /&gt;thats an application of paste / redirection I'd never encountered before.  nifty!</description>
      <pubDate>Mon, 22 Jun 2009 15:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reformatting-text/m-p/4444088#M682806</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-06-22T15:03:55Z</dc:date>
    </item>
  </channel>
</rss>

