<?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: Scrpiting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853218#M395366</link>
    <description>Thank you for every one.&lt;BR /&gt;&lt;BR /&gt;Infact I wanted it side by side to make a list of servers and their sendmail versions, to be created through a script.&lt;BR /&gt;&lt;BR /&gt;Paste has worked well.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Anoop</description>
    <pubDate>Mon, 29 Mar 2004 02:56:28 GMT</pubDate>
    <dc:creator>Anoop P_2</dc:creator>
    <dc:date>2004-03-29T02:56:28Z</dc:date>
    <item>
      <title>Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853211#M395359</link>
      <description>When we execute two commands in a single script and append the output in to a single file, the output comes like this:&lt;BR /&gt;&lt;BR /&gt;#script.sh&lt;BR /&gt;Command1 &amp;gt;&amp;gt; output&lt;BR /&gt;Command2 &amp;gt;&amp;gt; output&lt;BR /&gt;&lt;BR /&gt;# cat output&lt;BR /&gt;output of command1&lt;BR /&gt;output of command2&lt;BR /&gt;&lt;BR /&gt;But if I want it this way:&lt;BR /&gt;&lt;BR /&gt;output of command1           output of command2&lt;BR /&gt;&lt;BR /&gt;how should I write the script 'script.sh'?&lt;BR /&gt;&lt;BR /&gt;Apperciate immediate help!&lt;BR /&gt;&lt;BR /&gt;Anoop</description>
      <pubDate>Mon, 22 Mar 2004 07:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853211#M395359</guid>
      <dc:creator>Anoop P_2</dc:creator>
      <dc:date>2004-03-22T07:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853212#M395360</link>
      <description>Command1 &amp;gt;&amp;gt; output_1&lt;BR /&gt;Command2 &amp;gt;&amp;gt; output_2&lt;BR /&gt;&lt;BR /&gt;paste output_1 output_2 &amp;gt;&amp;gt; final_output.&lt;BR /&gt;Man paste for details.&lt;BR /&gt;&lt;BR /&gt;Anil&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Mar 2004 07:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853212#M395360</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-03-22T07:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853213#M395361</link>
      <description>If you have complete control of command1 and command2 and they are only writing a single line each you can do it.&lt;BR /&gt; &lt;BR /&gt;Assuming that command1 is using "echo" to output it's data then use a "\c" to stop the output of the carriage return e.g&lt;BR /&gt; &lt;BR /&gt;echo "here is the data\c"&lt;BR /&gt; &lt;BR /&gt;And command2 can just do an echo normally.&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 22 Mar 2004 07:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853213#M395361</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-22T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853214#M395362</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;If output is doable&lt;BR /&gt;&lt;BR /&gt;echo $(Command1)$(Command2) &amp;gt;&amp;gt; output&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel</description>
      <pubDate>Mon, 22 Mar 2004 09:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853214#M395362</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-03-22T09:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853215#M395363</link>
      <description>I'm not sure what you're asking.  If you want the output of both commands on the same line, this is easy.&lt;BR /&gt;&lt;BR /&gt;echo "result of command1 \c"&amp;gt;&amp;gt;file&lt;BR /&gt;echo "result of command2"&amp;gt;&amp;gt;file&lt;BR /&gt;&lt;BR /&gt;The \c in the first echo statement suppresses the carriage return that echo normally appends.  The second command gets the carriage return.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 22 Mar 2004 17:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853215#M395363</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2004-03-22T17:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853216#M395364</link>
      <description>&lt;BR /&gt;btw... do you want a space between the lines?&lt;BR /&gt;&lt;BR /&gt;you could join the lines after the fact with and editor or awk. For examples:&lt;BR /&gt;&lt;BR /&gt;echo "1,2 j\nw" | ed x&lt;BR /&gt;&lt;BR /&gt;The usage advantage of an editor is that you don't have to deal with an intermediate file.&lt;BR /&gt;&lt;BR /&gt;With intermediate file and with space:&lt;BR /&gt;&lt;BR /&gt;Command1 &amp;gt;&amp;gt; tmp&lt;BR /&gt;tr "[\012]" "[ ]" &lt;TMP&gt;output&lt;BR /&gt;Command2 &amp;gt;&amp;gt; output&lt;BR /&gt;&lt;BR /&gt;Without space:&lt;BR /&gt;&lt;BR /&gt;Command1 &amp;gt;&amp;gt; tmp&lt;BR /&gt;tr -d "[\012]" &lt;TMP&gt;output&lt;BR /&gt;Command2 &amp;gt;&amp;gt; output&lt;BR /&gt;&lt;BR /&gt;Or you could fix the problem after the fact:&lt;BR /&gt;&lt;BR /&gt;fix up output with perl with space:&lt;BR /&gt;&lt;BR /&gt;perl -e '$_ = &amp;lt;&amp;gt;; chop; print $_ ." ".&amp;lt;&amp;gt;' &lt;TMP&gt; output&lt;BR /&gt;&lt;BR /&gt;fix up output with 'ed' without space:&lt;BR /&gt;echo "1,2 j\nw" | ed -s output&lt;BR /&gt;&lt;BR /&gt;So many options!&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or you cou&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TMP&gt;&lt;/TMP&gt;&lt;/TMP&gt;</description>
      <pubDate>Mon, 22 Mar 2004 21:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853216#M395364</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-03-22T21:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853217#M395365</link>
      <description>&lt;BR /&gt;Not sure what the intent is.&lt;BR /&gt;&lt;BR /&gt;This method appends output of command1 to the bottom of command2&lt;BR /&gt;(&lt;BR /&gt;command1&lt;BR /&gt;command2 ) &amp;gt; output&lt;BR /&gt;&lt;BR /&gt;If the output is multi line and you want them side by side. Paste works&lt;BR /&gt;command1 &amp;gt; output1&lt;BR /&gt;command2 &amp;gt; output2&lt;BR /&gt;paste output1 output2 &amp;gt; output&lt;BR /&gt;&lt;BR /&gt;If you want the output side by side for comparision sdiff does a nice job of delimiting the changes.&lt;BR /&gt;command1 &amp;gt; output1&lt;BR /&gt;command2 &amp;gt; output2&lt;BR /&gt;sdiff output1 output2 &amp;gt; output&lt;BR /&gt;&lt;BR /&gt;If the commands return one line of output and you want them side by side.&lt;BR /&gt;echo "$(command1)\c $(command2)" &amp;gt; output&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Mar 2004 13:07:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853217#M395365</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2004-03-23T13:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853218#M395366</link>
      <description>Thank you for every one.&lt;BR /&gt;&lt;BR /&gt;Infact I wanted it side by side to make a list of servers and their sendmail versions, to be created through a script.&lt;BR /&gt;&lt;BR /&gt;Paste has worked well.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Anoop</description>
      <pubDate>Mon, 29 Mar 2004 02:56:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853218#M395366</guid>
      <dc:creator>Anoop P_2</dc:creator>
      <dc:date>2004-03-29T02:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853219#M395367</link>
      <description>You could also use "pr -m output1 output2". Do a "man pr" to see other options available to help format the output.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 29 Mar 2004 10:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853219#M395367</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-03-29T10:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scrpiting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853220#M395368</link>
      <description>The solution has already been obtained</description>
      <pubDate>Mon, 20 Jun 2005 05:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scrpiting/m-p/4853220#M395368</guid>
      <dc:creator>Anoop P_2</dc:creator>
      <dc:date>2005-06-20T05:12:46Z</dc:date>
    </item>
  </channel>
</rss>

