<?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: combinig o/p in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219179#M679091</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It is not working, as it is not able to find the files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,</description>
    <pubDate>Thu, 14 Jan 2010 07:09:14 GMT</pubDate>
    <dc:creator>Soul_1</dc:creator>
    <dc:date>2010-01-14T07:09:14Z</dc:date>
    <item>
      <title>combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219175#M679087</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;i wrote one script to get the node details.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;#Script to check the node details&lt;BR /&gt;Node=$(/opt/OV/bin/ovtopodump -lr|grep "NODE LABEL"|awk '{print $3}')&lt;BR /&gt;Int=$(/opt/OV/bin/ovtopodump -lr|grep "NUMBER OF INTERFACES")&lt;BR /&gt;Detail="$Node $Int"&lt;BR /&gt;echo "$Detail \c\n"&lt;BR /&gt;_______________________________&lt;BR /&gt;The o/p of this command is will be&lt;BR /&gt;Node=$(/opt/OV/bin/ovtopodump -lr|grep "NODE LABEL"|awk '{print $3}')&lt;BR /&gt;&lt;BR /&gt;xyz.co.in&lt;BR /&gt;yyy.co.in&lt;BR /&gt;sss.co.in&lt;BR /&gt;ttt.co.in&lt;BR /&gt;&lt;BR /&gt;and o/p of second command Int=$(/opt/OV/bin/ovtopodump -lr|grep "NUMBER OF INTERFACES")&lt;BR /&gt;is&lt;BR /&gt;interfaces 30&lt;BR /&gt;interfaces 120&lt;BR /&gt;interfaces 12&lt;BR /&gt;interfaces 44&lt;BR /&gt;&lt;BR /&gt;what is my req is i want to display the o/p in one line&lt;BR /&gt;&lt;BR /&gt;i.e &lt;BR /&gt;xyz.co.in interfaces 30&lt;BR /&gt;yyy.co.in interfaces 120&lt;BR /&gt;sss.co.in interfaces 12&lt;BR /&gt;&lt;BR /&gt;but i am getting o/p as &lt;BR /&gt;xyz.co.in&lt;BR /&gt;yyy.co.in&lt;BR /&gt;sss.co.in&lt;BR /&gt;ttt.co.in interfaces 30&lt;BR /&gt;interfaces 120&lt;BR /&gt;interfaces 12&lt;BR /&gt;interfaces 44&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;please guide me to achieve this .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to all in advance&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2010 05:25:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219175#M679087</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2010-01-14T05:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219176#M679088</link>
      <description>there is ery simple utility called paste&lt;BR /&gt;&lt;BR /&gt;paste file1 file2&lt;BR /&gt;&lt;BR /&gt;outpur will be the one you want.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2010 06:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219176#M679088</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-01-14T06:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219177#M679089</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Thanks for the information.&lt;BR /&gt;It would be helpful if we combine the o/p without redirecting the result to another one and combibining it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;any way that was working.Thanks Once again</description>
      <pubDate>Thu, 14 Jan 2010 06:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219177#M679089</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2010-01-14T06:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219178#M679090</link>
      <description>not sure but u can do like&lt;BR /&gt;&lt;BR /&gt;Detail= paste $Node $Int&lt;BR /&gt;echo "$Detail \c\n"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this should work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2010 06:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219178#M679090</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-01-14T06:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219179#M679091</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It is not working, as it is not able to find the files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,</description>
      <pubDate>Thu, 14 Jan 2010 07:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219179#M679091</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2010-01-14T07:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219180#M679092</link>
      <description>&amp;gt;It would be helpful if we combine the output without redirecting the result to another one and combining it.&lt;BR /&gt;&lt;BR /&gt;You can probably do that if you use awk on the output of:&lt;BR /&gt;/opt/OV/bin/ovtopodump -lr | grep -e "NODE LABEL" -e "NUMBER OF INTERFACES"&lt;BR /&gt;&lt;BR /&gt;Can you provide a sample of that that looks like?&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2010 11:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219180#M679092</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-14T11:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219181#M679093</link>
      <description>Just give a small o/p of (/opt/OV/bin/ovtopodump -lr to understand it better.</description>
      <pubDate>Thu, 14 Jan 2010 11:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219181#M679093</guid>
      <dc:creator>TARUN SHARMA_1</dc:creator>
      <dc:date>2010-01-14T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219182#M679094</link>
      <description>try something like this:&lt;BR /&gt;&lt;BR /&gt;# /opt/OV/bin/ovtopodump -lr | &lt;BR /&gt;awk '/NODE LABEL/ {printf $3"\t"} &lt;BR /&gt;/NUMBER OF INTERFACES/ {print $0}'&lt;BR /&gt;&lt;BR /&gt;maybe it's not perfect because it is untested. But there's no need to run ovtopodump twice and grep can also be done with awk. Tailor it to your own needs.&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jan 2010 13:42:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219182#M679094</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-01-15T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219183#M679095</link>
      <description>&amp;gt;Viktor: try something like this:&lt;BR /&gt;&lt;BR /&gt;Assuming they come out in that order, you could also use a variable so you only have one print:&lt;BR /&gt;... | awk '&lt;BR /&gt;/NODE LABEL/ { NODE = $3 }&lt;BR /&gt;/NUMBER OF INTERFACES/ { print NODE, $0 }'</description>
      <pubDate>Sat, 16 Jan 2010 03:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219183#M679095</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-16T03:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219184#M679096</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;Thanks all,&lt;BR /&gt;&lt;BR /&gt;can you please tell me how this command works&lt;BR /&gt;&lt;BR /&gt;1. /opt/OV/bin/ovtopodump -lr|awk '/NODE LABEL/ { NODE = $3 } /NUMBER OF INTERFACES/ { print NODE, $0 }'&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;/opt/OV/bin/ovtopodump -lr | awk '/NODE LABEL/ {printf $3"\t"}/NUMBER OF INTERFACES/ {print $0}'&lt;BR /&gt;&lt;BR /&gt;It would be great helpful if you explain how this works.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot &lt;BR /&gt;&lt;BR /&gt;both are giving the desired o/p.</description>
      <pubDate>Mon, 18 Jan 2010 06:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219184#M679096</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2010-01-18T06:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219185#M679097</link>
      <description>&amp;gt;can you please tell me how this command works&lt;BR /&gt;&amp;gt;1. awk '/NODE LABEL/ { NODE = $3 } /NUMBER OF INTERFACES/ { print NODE, $0 }'&lt;BR /&gt;&lt;BR /&gt;This saves field3 of every line that has "NODE LABEL".  When it finds a line with "NUMBER OF INTERFACES", it first prints the saved NODE, then a space (the variable OFS), then the current line.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2.awk '/NODE LABEL/ {printf $3"\t"}/NUMBER OF INTERFACES/ {print $0}'&lt;BR /&gt;&lt;BR /&gt;This finds the same two lines.  For the first, it prints field3, then a tab.  For the second, it prints the line, appended to the first printf (that doesn't have a newline).&lt;BR /&gt;&lt;BR /&gt;Both depend on the ordering of the original two lines.</description>
      <pubDate>Mon, 18 Jan 2010 10:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219185#M679097</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-18T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219186#M679098</link>
      <description>&lt;BR /&gt;awk '/search_pattern/ {do this if pattern found}'&lt;BR /&gt;&lt;BR /&gt;with the 'print' awk statement you can write the n'th field by $n. The fields are separated by whitespaces in default.&lt;BR /&gt;&lt;BR /&gt;so the following means:&lt;BR /&gt;&lt;BR /&gt;awk '/NODE LABEL/ {printf $3"\t"}&lt;BR /&gt;/NUMBER OF INTERFACES/ {print $0}'&lt;BR /&gt;&lt;BR /&gt;if "NODE LABEL" is found in the line, print the 3rd field, and if "NUMBER OF INTERFACES" matches print the whole line (that's $0)&lt;BR /&gt;&lt;BR /&gt;And do not forget about the quotes (') all around the awk statement, without these the words with $ would be substituted by your shell.&lt;BR /&gt;&lt;BR /&gt;The other query is the same, I hope you can figure that out.</description>
      <pubDate>Mon, 18 Jan 2010 10:08:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219186#M679098</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-01-18T10:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: combinig o/p</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219187#M679099</link>
      <description>Thanks to all</description>
      <pubDate>Mon, 18 Jan 2010 10:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/combinig-o-p/m-p/5219187#M679099</guid>
      <dc:creator>Soul_1</dc:creator>
      <dc:date>2010-01-18T10:08:26Z</dc:date>
    </item>
  </channel>
</rss>

