<?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: Formatting File Output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565545#M919599</link>
    <description>HI&lt;BR /&gt;  if you want the file content to be listed side by side&lt;BR /&gt;&lt;BR /&gt;ex:  a.lst&lt;BR /&gt;1 &lt;BR /&gt;2&lt;BR /&gt;b.lst&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt; output to be&lt;BR /&gt;1 3&lt;BR /&gt;2 4&lt;BR /&gt;then use the below shell&lt;BR /&gt;&lt;BR /&gt;count=1&lt;BR /&gt;while read eachline;do&lt;BR /&gt;    awk '{ if (NR == "'$count'"){&lt;BR /&gt;              print "'$eachline'"" "$0&lt;BR /&gt;          }}' b.lst&lt;BR /&gt;done&lt;A.LST&gt;&lt;/A.LST&gt;&lt;BR /&gt;  This will produce the desired output...&lt;BR /&gt;&lt;BR /&gt;...BPK...</description>
    <pubDate>Wed, 15 Aug 2001 17:31:16 GMT</pubDate>
    <dc:creator>Praveen Bezawada</dc:creator>
    <dc:date>2001-08-15T17:31:16Z</dc:date>
    <item>
      <title>Formatting File Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565540#M919594</link>
      <description>Does anyone know how to take two files and combined them so the output would have the two files listed side by side.</description>
      <pubDate>Wed, 15 Aug 2001 11:04:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565540#M919594</guid>
      <dc:creator>Jeffrey S. Bromley</dc:creator>
      <dc:date>2001-08-15T11:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting File Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565541#M919595</link>
      <description>Hi Jeffrey:&lt;BR /&gt;&lt;BR /&gt;# paste file1 file2&lt;BR /&gt;&lt;BR /&gt;See 'man paste' for more details.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 15 Aug 2001 11:06:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565541#M919595</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-15T11:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting File Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565542#M919596</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As James said, paste command merge same lines of several files or subseqquent lines of one file.&lt;BR /&gt;&lt;BR /&gt;#paste file1 file2&lt;BR /&gt;or&lt;BR /&gt;#paste file1 file2 file3 ... file_n&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Wed, 15 Aug 2001 11:15:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565542#M919596</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-08-15T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting File Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565543#M919597</link>
      <description>&lt;BR /&gt;Actually to get a real nice printout, use this:&lt;BR /&gt;&lt;BR /&gt;pr -t -m file1 file2</description>
      <pubDate>Wed, 15 Aug 2001 13:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565543#M919597</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-08-15T13:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting File Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565544#M919598</link>
      <description>&lt;BR /&gt;Also, with pr, you can add the column width command as in "-w200". Take the longest line of file1 and the lonest line of file2, add them together to get the "-w&lt;NUMBER&gt;", otherwise pr will truncate the lines to make it fit.&lt;/NUMBER&gt;</description>
      <pubDate>Wed, 15 Aug 2001 14:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565544#M919598</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-08-15T14:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting File Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565545#M919599</link>
      <description>HI&lt;BR /&gt;  if you want the file content to be listed side by side&lt;BR /&gt;&lt;BR /&gt;ex:  a.lst&lt;BR /&gt;1 &lt;BR /&gt;2&lt;BR /&gt;b.lst&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt; output to be&lt;BR /&gt;1 3&lt;BR /&gt;2 4&lt;BR /&gt;then use the below shell&lt;BR /&gt;&lt;BR /&gt;count=1&lt;BR /&gt;while read eachline;do&lt;BR /&gt;    awk '{ if (NR == "'$count'"){&lt;BR /&gt;              print "'$eachline'"" "$0&lt;BR /&gt;          }}' b.lst&lt;BR /&gt;done&lt;A.LST&gt;&lt;/A.LST&gt;&lt;BR /&gt;  This will produce the desired output...&lt;BR /&gt;&lt;BR /&gt;...BPK...</description>
      <pubDate>Wed, 15 Aug 2001 17:31:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatting-file-output/m-p/2565545#M919599</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-08-15T17:31:16Z</dc:date>
    </item>
  </channel>
</rss>

