<?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 format ouput file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273675#M885017</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have created an output file which is attached to this message. I want to format the output. It is a SQL query output and i want each record to come in a single line and not get wrapped as the case now.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Andy</description>
    <pubDate>Tue, 11 May 2004 16:47:48 GMT</pubDate>
    <dc:creator>Anand_30</dc:creator>
    <dc:date>2004-05-11T16:47:48Z</dc:date>
    <item>
      <title>format ouput file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273675#M885017</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have created an output file which is attached to this message. I want to format the output. It is a SQL query output and i want each record to come in a single line and not get wrapped as the case now.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Andy</description>
      <pubDate>Tue, 11 May 2004 16:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273675#M885017</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2004-05-11T16:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: format ouput file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273676#M885018</link>
      <description>without knowing how you get this data, it is hard to guess why it came like this but, it very much seems like a screen dump from a 80 column terminal emulator and the emulator may have included the linebreaks in it.&lt;BR /&gt;&lt;BR /&gt;suggestion is to run your sql query and redirect output to a file something like &lt;BR /&gt;&lt;BR /&gt;sql select * from blah...blah &amp;gt; /tmp/sqldump&lt;BR /&gt;&lt;BR /&gt;then transfer this file to your workstation using ftp rather than screen capture or log capture from a terminal emulator&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Tue, 11 May 2004 16:54:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273676#M885018</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-11T16:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: format ouput file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273677#M885019</link>
      <description>Thanks for the reply...I wrote a script which connects to sql using isql and then executes the query and gets this ouput:&lt;BR /&gt;&lt;BR /&gt;isql -U[user] -P[password] &amp;lt;&amp;lt; EOF &amp;gt; output&lt;BR /&gt;&lt;BR /&gt;Now i need to format this ouput so that it is better readable.&lt;BR /&gt;&lt;BR /&gt;-Andy&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 May 2004 17:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273677#M885019</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2004-05-11T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: format ouput file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273678#M885020</link>
      <description>if you are generating the sql output in unix environment then trying to view it in DOS/Windows, you can try one of the free unix2dos utilities that you can download from any decent freeware site. CR - to - CR/LF conversion makes a document a lot easier to read in windows :)</description>
      <pubDate>Tue, 11 May 2004 17:16:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273678#M885020</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-11T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: format ouput file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273679#M885021</link>
      <description>What are the values of the environment variable 'COLUMNS', and the stty value of 'cols' ?&lt;BR /&gt;&lt;BR /&gt;Simply: 'echo $COLUMNS' and 'stty -a' to get them.&lt;BR /&gt;&lt;BR /&gt;I'm picking that one or the other is set to 80, or that 'isql' defaults to wrap-at-80.  Try bumping these values up.  See what the result is.</description>
      <pubDate>Tue, 11 May 2004 18:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273679#M885021</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-05-11T18:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: format ouput file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273680#M885022</link>
      <description>The column value is 154. But i am using a terminal emulater that has columns set to 80.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Anand</description>
      <pubDate>Tue, 11 May 2004 19:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273680#M885022</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2004-05-11T19:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: format ouput file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273681#M885023</link>
      <description>&lt;BR /&gt;This problem really should be solved in SQL.&lt;BR /&gt;In Oracle SQLplus lingo you would need&lt;BR /&gt;SET LINESIZE 999;&lt;BR /&gt;and probably lots of&lt;BR /&gt;COLUMN xxx FORMAT Ann&lt;BR /&gt;for example&lt;BR /&gt;COLUMN VENDER FORMAT A20;&lt;BR /&gt;&lt;BR /&gt;Your chance to learn more SQL!&lt;BR /&gt;&lt;BR /&gt;If you have to live with the file you have today, just push it through PERL or AWK (on PC or Unix box.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;C:\&amp;gt;perl -e "&amp;lt;&amp;gt;;&amp;lt;&amp;gt;;while (&amp;lt;&amp;gt;) {for ($i=0;$i&amp;lt;4;$i++){chop; $_.=&amp;lt;&amp;gt;}print}" narrow.txt &amp;gt; wide.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This says... &lt;BR /&gt;- read and forget twice.&lt;BR /&gt;- main loop reading a line.&lt;BR /&gt;- subloop 4 times chopping of the last character (newline) and appending (the .=) an additional line.&lt;BR /&gt;- print  (the default it to print $_)&lt;BR /&gt;- end main loop&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 May 2004 21:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/format-ouput-file/m-p/3273681#M885023</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-05-11T21:47:39Z</dc:date>
    </item>
  </channel>
</rss>

