<?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: Scripting - Printing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972484#M120680</link>
    <description>i'm not sure i understand your question, but try this :&lt;BR /&gt;&lt;BR /&gt;program_tat_generates_output|&lt;BR /&gt;awk '{ printf "Want to print : %s\n", $0}'</description>
    <pubDate>Wed, 14 May 2003 05:38:11 GMT</pubDate>
    <dc:creator>Systeemingenieurs Infoc</dc:creator>
    <dc:date>2003-05-14T05:38:11Z</dc:date>
    <item>
      <title>Scripting - Printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972483#M120679</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have output like this&lt;BR /&gt;detail1&lt;BR /&gt;detail3&lt;BR /&gt;detail4&lt;BR /&gt;&lt;BR /&gt;I want to print above output like&lt;BR /&gt;echo "Want to print : detail1&lt;BR /&gt;                      detail2&lt;BR /&gt;                      detail3"&lt;BR /&gt;&lt;BR /&gt;I am trying to achieve with whatever scripting I know but I got the  output like&lt;BR /&gt;&lt;BR /&gt;echo "Want to print : detail1&lt;BR /&gt;detail2&lt;BR /&gt;detail3"&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Tue, 13 May 2003 21:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972483#M120679</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2003-05-13T21:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting - Printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972484#M120680</link>
      <description>i'm not sure i understand your question, but try this :&lt;BR /&gt;&lt;BR /&gt;program_tat_generates_output|&lt;BR /&gt;awk '{ printf "Want to print : %s\n", $0}'</description>
      <pubDate>Wed, 14 May 2003 05:38:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972484#M120680</guid>
      <dc:creator>Systeemingenieurs Infoc</dc:creator>
      <dc:date>2003-05-14T05:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting - Printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972485#M120681</link>
      <description>hi,&lt;BR /&gt;i could not understand what exactly u want. but if ur program runs in a loop every time it generates output like &lt;BR /&gt;first run&lt;BR /&gt;detail1&lt;BR /&gt;second run&lt;BR /&gt;detail2 ....etc.,&lt;BR /&gt;&lt;BR /&gt;u assign this output to a variable like&lt;BR /&gt;&lt;BR /&gt;tmp=`out put of program`&lt;BR /&gt;&lt;BR /&gt;then in the next line in the loop write&lt;BR /&gt;&lt;BR /&gt;echo "Want to print:$tmp"&lt;BR /&gt;&lt;BR /&gt;Redirect the output of above echo statement to a file if u want.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 14 May 2003 06:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972485#M120681</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2003-05-14T06:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting - Printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972486#M120682</link>
      <description>Hi,&lt;BR /&gt;try with \n inside the echo command:&lt;BR /&gt;&lt;BR /&gt;echo "Want to print:\ndetail1\ndetail3\ndetail4"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Wed, 14 May 2003 07:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972486#M120682</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-05-14T07:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting - Printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972487#M120683</link>
      <description>if you want to have them print next to each other then use \c at the end of each line as opposed to the assumed \n&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 14 May 2003 07:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-printing/m-p/2972487#M120683</guid>
      <dc:creator>John de Villiers</dc:creator>
      <dc:date>2003-05-14T07:49:03Z</dc:date>
    </item>
  </channel>
</rss>

