<?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 one liner in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/one-liner/m-p/5256502#M658948</link>
    <description>Hi all &lt;BR /&gt;&lt;BR /&gt;We want to run the following grep command and get the output read by lanadmin -x &lt;BR /&gt;&lt;BR /&gt;grep -s -e PRIMARY -e STANDBY /etc/lanmon/lanconfig.ascii | awk '{print $2}' | cut -c 4-&lt;BR /&gt;&lt;BR /&gt;so we get 5 6 7 8 , etc  and want to run lanadmin -x for each of them &lt;BR /&gt;But want this on one line so can ssh it around - how do you pass the output one at a time to lanadmin ? &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Sep 2010 13:58:21 GMT</pubDate>
    <dc:creator>KevB_1</dc:creator>
    <dc:date>2010-09-23T13:58:21Z</dc:date>
    <item>
      <title>one liner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-liner/m-p/5256502#M658948</link>
      <description>Hi all &lt;BR /&gt;&lt;BR /&gt;We want to run the following grep command and get the output read by lanadmin -x &lt;BR /&gt;&lt;BR /&gt;grep -s -e PRIMARY -e STANDBY /etc/lanmon/lanconfig.ascii | awk '{print $2}' | cut -c 4-&lt;BR /&gt;&lt;BR /&gt;so we get 5 6 7 8 , etc  and want to run lanadmin -x for each of them &lt;BR /&gt;But want this on one line so can ssh it around - how do you pass the output one at a time to lanadmin ? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Sep 2010 13:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-liner/m-p/5256502#M658948</guid>
      <dc:creator>KevB_1</dc:creator>
      <dc:date>2010-09-23T13:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: one liner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-liner/m-p/5256503#M658949</link>
      <description>Hi Kev:&lt;BR /&gt;&lt;BR /&gt;First, let 'awk' do the work of matching and snipping:&lt;BR /&gt;&lt;BR /&gt;# awk '/PRIMARY|STANDBY/ &amp;amp;&amp;amp; $2~/lan/ {print substr($2,4)}' /etc/lanmon/lanconfig.ascii | while read NUM; do lanadmin -p ${NUM};done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 23 Sep 2010 14:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-liner/m-p/5256503#M658949</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-09-23T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: one liner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-liner/m-p/5256504#M658950</link>
      <description>Many thanks that was perfect !!</description>
      <pubDate>Fri, 24 Sep 2010 08:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-liner/m-p/5256504#M658950</guid>
      <dc:creator>KevB_1</dc:creator>
      <dc:date>2010-09-24T08:01:28Z</dc:date>
    </item>
  </channel>
</rss>

