<?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: Quick scripting 10points in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804207#M939416</link>
    <description>Hi &lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;&lt;BR /&gt;ip1=`ifconfig lan0 | grep inet | awk '{print $2}'`&lt;BR /&gt;&lt;BR /&gt;echo $ip1&lt;BR /&gt;&lt;BR /&gt;will give the ip address stored in a variable&lt;BR /&gt;&lt;BR /&gt;hth,</description>
    <pubDate>Wed, 11 Sep 2002 12:57:39 GMT</pubDate>
    <dc:creator>BKUMAR</dc:creator>
    <dc:date>2002-09-11T12:57:39Z</dc:date>
    <item>
      <title>Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804198#M939407</link>
      <description>A quick one&lt;BR /&gt;&lt;BR /&gt;I need to do "ifconfig lan0 | grep inet" and from the line I get I just get the IP address. i.e. pipe the output to something and get only the ip adress ??&lt;BR /&gt;&lt;BR /&gt;ANY CLUES&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 12:45:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804198#M939407</guid>
      <dc:creator>Stefan Saliba</dc:creator>
      <dc:date>2002-09-11T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804199#M939408</link>
      <description>ifconfig lan0 |grep inet |awk '{ print $6 }'&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 11 Sep 2002 12:47:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804199#M939408</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-09-11T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804200#M939409</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For the quick and dirty way to get the IP address from something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ifconfig lan0                  &lt;BR /&gt;lan0: flags=843&lt;UP&gt;&lt;BR /&gt;inet 10.100.12.23 netmask ffffff00 broadcast 10.100.12.255  &lt;BR /&gt;&lt;BR /&gt;# ifconfig lan0 | tail -1 | awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;10.100.12.23 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It may not work in all cases, but it is one way to do it.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;&lt;/UP&gt;</description>
      <pubDate>Wed, 11 Sep 2002 12:48:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804200#M939409</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-09-11T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804201#M939410</link>
      <description>Hello Stefan,&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;ifconfig lan0 | grep inet | cut -s -d " " -f2&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Dirk</description>
      <pubDate>Wed, 11 Sep 2002 12:49:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804201#M939410</guid>
      <dc:creator>Dirk Wiedemann</dc:creator>
      <dc:date>2002-09-11T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804202#M939411</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ifconfig lan0 | grep inet | awk '{print $2}'  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;will give you the IP adress only .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Wed, 11 Sep 2002 12:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804202#M939411</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-09-11T12:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804203#M939412</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;do the following&lt;BR /&gt;&lt;BR /&gt;ifconfig lan0 | grep inet | awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 11 Sep 2002 12:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804203#M939412</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-09-11T12:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804204#M939413</link>
      <description>Thanks guys for the help&lt;BR /&gt;&lt;BR /&gt;OK 10 points to all...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good day to all&lt;BR /&gt;Stefan&lt;BR /&gt;CASE CLOSED&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 12:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804204#M939413</guid>
      <dc:creator>Stefan Saliba</dc:creator>
      <dc:date>2002-09-11T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804205#M939414</link>
      <description>Aaaaakkkk! My mistake.  Make that $2, not $6&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 11 Sep 2002 12:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804205#M939414</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-09-11T12:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804206#M939415</link>
      <description>Thanks just the same Pete&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 12:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804206#M939415</guid>
      <dc:creator>Stefan Saliba</dc:creator>
      <dc:date>2002-09-11T12:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804207#M939416</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;&lt;BR /&gt;ip1=`ifconfig lan0 | grep inet | awk '{print $2}'`&lt;BR /&gt;&lt;BR /&gt;echo $ip1&lt;BR /&gt;&lt;BR /&gt;will give the ip address stored in a variable&lt;BR /&gt;&lt;BR /&gt;hth,</description>
      <pubDate>Wed, 11 Sep 2002 12:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804207#M939416</guid>
      <dc:creator>BKUMAR</dc:creator>
      <dc:date>2002-09-11T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804208#M939417</link>
      <description>One perl solution:&lt;BR /&gt;&lt;BR /&gt;ifconfig lan0 | perl -n -e 'if (/inet ([\d.]*) netmask/) {print $1;}'&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 11 Sep 2002 12:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804208#M939417</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-09-11T12:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804209#M939418</link>
      <description>Couldn't resist, because I saw so many replys that suggested a piped combo of grep and awk.&lt;BR /&gt;Why on earth waste two processes with IPC involved where just one would suffice?&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;# ifconfig lan0 | awk '$1~/inet/{print $2}'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 13:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804209#M939418</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-09-11T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804210#M939419</link>
      <description>Very good point Ralph.&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 11 Sep 2002 13:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804210#M939419</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-09-11T13:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Quick scripting 10points</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804211#M939420</link>
      <description>netstat -in | awk '{if ($1 == "lan0") print $4}'</description>
      <pubDate>Thu, 12 Sep 2002 12:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-scripting-10points/m-p/2804211#M939420</guid>
      <dc:creator>George A Bodnar</dc:creator>
      <dc:date>2002-09-12T12:04:37Z</dc:date>
    </item>
  </channel>
</rss>

