<?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: printing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972357#M120656</link>
    <description>Here's a couple of alternatives:&lt;BR /&gt;&lt;BR /&gt;cat file_name | paste - - -&lt;BR /&gt;&lt;BR /&gt;(use - for each column needed)&lt;BR /&gt;&lt;BR /&gt;pr -3 -t file_name&lt;BR /&gt;&lt;BR /&gt;(in this case, each line is arranged vertically rather than horizontally)</description>
    <pubDate>Wed, 14 May 2003 01:44:32 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-05-14T01:44:32Z</dc:date>
    <item>
      <title>printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972352#M120651</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to print following lines&lt;BR /&gt;&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line3&lt;BR /&gt;&lt;BR /&gt;as&lt;BR /&gt;&lt;BR /&gt;line1 line2 line3.&lt;BR /&gt;&lt;BR /&gt;I want to print in a single line instead of three lines.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 13 May 2003 18:25:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972352#M120651</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2003-05-13T18:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972353#M120652</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I assume the lines reside in a file.  Thus:&lt;BR /&gt;&lt;BR /&gt;# cat filename|xargs&lt;BR /&gt;&lt;BR /&gt;If not, then consider:&lt;BR /&gt;&lt;BR /&gt;# echo "line1\nline2\nline3"|xargs&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 13 May 2003 18:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972353#M120652</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-05-13T18:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972354#M120653</link>
      <description>Create a script with:&lt;BR /&gt;&lt;BR /&gt;#! /bin/sed -nf&lt;BR /&gt;&lt;BR /&gt;H&lt;BR /&gt;$ {&lt;BR /&gt;  x&lt;BR /&gt;  s/\n//g&lt;BR /&gt;  p&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Example (script caled join.sed):&lt;BR /&gt;&lt;BR /&gt;join.sed yourfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 13 May 2003 18:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972354#M120653</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-05-13T18:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972355#M120654</link>
      <description>Hi,&lt;BR /&gt;if it is just a matter of translating carriage return characters into spaces, tr is fast, e.g.:&lt;BR /&gt;# tr "\012" "\040" &amp;lt; linefile&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Tue, 13 May 2003 20:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972355#M120654</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-05-13T20:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972356#M120655</link>
      <description>Geoff,&lt;BR /&gt;&lt;BR /&gt;May I ask why it is not working if I don't use &lt;BR /&gt;H and x commands with s/\n//g?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Tue, 13 May 2003 21:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972356#M120655</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2003-05-13T21:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972357#M120656</link>
      <description>Here's a couple of alternatives:&lt;BR /&gt;&lt;BR /&gt;cat file_name | paste - - -&lt;BR /&gt;&lt;BR /&gt;(use - for each column needed)&lt;BR /&gt;&lt;BR /&gt;pr -3 -t file_name&lt;BR /&gt;&lt;BR /&gt;(in this case, each line is arranged vertically rather than horizontally)</description>
      <pubDate>Wed, 14 May 2003 01:44:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972357#M120656</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-05-14T01:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972358#M120657</link>
      <description>Well...the H means - Append the contents of the pattern space to the hold space.&lt;BR /&gt;&lt;BR /&gt;The x means - Exchange the contents of the pattern and hold spaces.&lt;BR /&gt;&lt;BR /&gt;I don't know sed enough to explain it...&lt;BR /&gt;&lt;BR /&gt;Here's a handy site:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.unixguide.net/unix/sedoneliner.shtml" target="_blank"&gt;http://www.unixguide.net/unix/sedoneliner.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 11:41:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing/m-p/2972358#M120657</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-05-14T11:41:19Z</dc:date>
    </item>
  </channel>
</rss>

