<?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: netstat -a | grep in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002832#M424828</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you do a grep -w 23 it will search for 23 as a word by itself.&lt;BR /&gt;&lt;BR /&gt;netstat -a | grep -w 23&lt;BR /&gt;&lt;BR /&gt;HTH</description>
    <pubDate>Tue, 12 Sep 2006 14:52:19 GMT</pubDate>
    <dc:creator>Jonathan Fife</dc:creator>
    <dc:date>2006-09-12T14:52:19Z</dc:date>
    <item>
      <title>netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002828#M424824</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I want to netstat -a | grep '23' (or any port number).&lt;BR /&gt;&lt;BR /&gt;I dont want output to contain &lt;BR /&gt;6523 or&lt;BR /&gt;6723&lt;BR /&gt;&lt;BR /&gt;I want output to contain &lt;BR /&gt;23 or&lt;BR /&gt;25 etc&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002828#M424824</guid>
      <dc:creator>SM_3</dc:creator>
      <dc:date>2006-09-12T14:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002829#M424825</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;&lt;BR /&gt;netstat -a | grep " 23"&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;netstat -a | grep ":23"&lt;BR /&gt;&lt;BR /&gt;putting a space in the quotes gets rid of 6523&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002829#M424825</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-09-12T14:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002830#M424826</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;You can restrict by &lt;BR /&gt;&lt;BR /&gt;# netstat -a |grep "23" &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 12 Sep 2006 14:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002830#M424826</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-09-12T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002831#M424827</link>
      <description>How about:&lt;BR /&gt;&lt;BR /&gt;netstat -an | grep '.23 '&lt;BR /&gt;&lt;BR /&gt;note the -an says do not perform a name lookup (otherwise, 23 will be translated to telnet and will never show up) and note that there is a period before the 23 and a space after the 23.&lt;BR /&gt;&lt;BR /&gt;you might also want to consider using lsof (download it if you dont already have it)&lt;BR /&gt;&lt;BR /&gt;lsof -i :23&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Kofi</description>
      <pubDate>Tue, 12 Sep 2006 14:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002831#M424827</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2006-09-12T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002832#M424828</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you do a grep -w 23 it will search for 23 as a word by itself.&lt;BR /&gt;&lt;BR /&gt;netstat -a | grep -w 23&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 12 Sep 2006 14:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002832#M424828</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-09-12T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002833#M424829</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use: netstat -a | grep ".23"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;MB.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002833#M424829</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2006-09-12T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002834#M424830</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;#  netstat -a|perl -nae 'print if $F[3]=~/\.23/'  &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 12 Sep 2006 14:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002834#M424830</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-09-12T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002835#M424831</link>
      <description>You probably really want netstat -an so that all ports are listed numerically rather than symbolically and because the output is IP_address.portnumber we can take advantage of that "." and use grep -E (enhanced grep).&lt;BR /&gt;&lt;BR /&gt;netstat -an | grep -E -e '\.23 '&lt;BR /&gt;&lt;BR /&gt;Note the '\.' rather than '.'. In Regular Expressions, '.' represents any character so we need to explicitly look for the '.' and thus we need to escape the '.' with a backslash.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002835#M424831</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-09-12T14:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002836#M424832</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# netstat -an | grep -E '.+\..+\..+\..+\.23 |\*.23 '&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Tue, 12 Sep 2006 14:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002836#M424832</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-12T14:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002837#M424833</link>
      <description>Just a note -- grep ".23" won't work since grep will interepret . as "any char" per regexp syntax. &lt;BR /&gt;&lt;BR /&gt;If you escape the . (ie. grep "\.23" that will make grep search for a period, but will still include ports that start with 23 (ie. 2301, 239, etc.)</description>
      <pubDate>Tue, 12 Sep 2006 14:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002837#M424833</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-09-12T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002838#M424834</link>
      <description>Blimey, that was quick.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002838#M424834</guid>
      <dc:creator>SM_3</dc:creator>
      <dc:date>2006-09-12T14:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -a | grep</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002839#M424835</link>
      <description>apologies for the delayed points.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Oct 2006 06:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-a-grep/m-p/5002839#M424835</guid>
      <dc:creator>SM_3</dc:creator>
      <dc:date>2006-10-12T06:07:25Z</dc:date>
    </item>
  </channel>
</rss>

