<?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: shell script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-script/m-p/4171183#M32076</link>
    <description>&amp;gt;&amp;gt; how to get the separator ":" from the output&lt;BR /&gt;&lt;BR /&gt; | tr ":" " "&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; how to get the uniq ip from output except for duplicated ip&lt;BR /&gt;&lt;BR /&gt; | sort -u -k 1,1 &lt;BR /&gt;&lt;BR /&gt;So it could be:&lt;BR /&gt;&lt;BR /&gt;netstat  -n | awk '{ print $5}'| grep ":80 " | tr ":" " " | sort -u -k 1,1&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Apr 2008 01:28:48 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2008-04-01T01:28:48Z</dc:date>
    <item>
      <title>shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script/m-p/4171182#M32075</link>
      <description>Hi all.&lt;BR /&gt;can I get the proper data from awk?&lt;BR /&gt;I'm going to get the 80 port connected from client&lt;BR /&gt;netstat -na|grep 80|awk '{print $5}'&lt;BR /&gt;the output is &lt;BR /&gt;as below&lt;BR /&gt;211.230.217.114:13098&lt;BR /&gt;221.159.231.39:11257&lt;BR /&gt;211.230.217.114:13534&lt;BR /&gt;211.230.217.114:13200&lt;BR /&gt;222.98.234.60:7370&lt;BR /&gt;211.230.217.114:14410&lt;BR /&gt;211.230.217.114:13995&lt;BR /&gt;222.98.234.60:7195&lt;BR /&gt;211.230.217.114:14629&lt;BR /&gt;211.237.50.75:80&lt;BR /&gt;211.237.50.75:80&lt;BR /&gt;211.237.50.75:80&lt;BR /&gt;211.237.50.75:80&lt;BR /&gt;127.0.0.1:80&lt;BR /&gt;127.0.0.1:80&lt;BR /&gt;127.0.0.1:80&lt;BR /&gt;127.0.0.1:9001&lt;BR /&gt;59.4.203.206:5514&lt;BR /&gt;211.229.236.56:16304&lt;BR /&gt;211.221.23.87:8704&lt;BR /&gt;211.221.23.87:7950&lt;BR /&gt;211.221.23.87:8250&lt;BR /&gt;211.221.23.87:8509&lt;BR /&gt;211.221.23.87:8747&lt;BR /&gt;211.229.236.56:15751&lt;BR /&gt;218.144.122.134:5413&lt;BR /&gt;211.221.23.87:9262&lt;BR /&gt;211.221.23.87:8281&lt;BR /&gt;211.229.236.56:2543&lt;BR /&gt;211.221.23.87:8306&lt;BR /&gt;211.229.236.56:16323&lt;BR /&gt;218.144.122.134:5533&lt;BR /&gt;211.221.23.87:8338&lt;BR /&gt;222.232.158.138:14598&lt;BR /&gt;211.229.236.56:2096&lt;BR /&gt;218.144.122.134:5519&lt;BR /&gt;218.144.122.134:5506&lt;BR /&gt;211.221.23.87:8628&lt;BR /&gt;211.237.50.102:80&lt;BR /&gt;211.237.50.102:80&lt;BR /&gt;211.237.50.102:80&lt;BR /&gt;211.221.23.87:8144&lt;BR /&gt;211.221.23.87:8668&lt;BR /&gt;211.229.236.56:2670&lt;BR /&gt;211.221.23.87:8901&lt;BR /&gt;211.221.23.87:8649&lt;BR /&gt;211.221.23.87:8652&lt;BR /&gt;211.221.23.87:8436&lt;BR /&gt;211.229.236.56:15951&lt;BR /&gt;211.229.236.56:2121&lt;BR /&gt;10.10.10.86:1521&lt;BR /&gt;211.221.23.87:8681&lt;BR /&gt;211.221.23.87:8684&lt;BR /&gt;211.230.217.114:14027&lt;BR /&gt;220.119.104.171:15816&lt;BR /&gt;211.216.214.37:4796&lt;BR /&gt;211.230.217.114:13708&lt;BR /&gt;211.230.217.114:14498&lt;BR /&gt;211.230.217.114:14759&lt;BR /&gt;211.230.217.114:14263&lt;BR /&gt;211.216.214.37:6944&lt;BR /&gt;220.119.104.171:15705&lt;BR /&gt;211.230.217.114:13412&lt;BR /&gt;211.230.217.114:14184&lt;BR /&gt;211.230.217.114:13676&lt;BR /&gt;211.230.217.114:13423&lt;BR /&gt;211.230.217.114:13937&lt;BR /&gt;211.230.217.114:14101&lt;BR /&gt;222.98.234.60:7293&lt;BR /&gt;211.237.50.80:3385&lt;BR /&gt;125.133.237.131:2819&lt;BR /&gt;61.78.62.12:4677&lt;BR /&gt;61.78.62.12:4683&lt;BR /&gt;125.133.237.131:2626&lt;BR /&gt;&lt;BR /&gt;I have 2 problems&lt;BR /&gt;1. how to get the uniq ip from output except         for duplicated ip&lt;BR /&gt;2. how to get the separator ":" from the output&lt;BR /&gt;so first field is IP and second field is port&lt;BR /&gt;&lt;BR /&gt;I need your help..!!!</description>
      <pubDate>Tue, 01 Apr 2008 00:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script/m-p/4171182#M32075</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2008-04-01T00:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script/m-p/4171183#M32076</link>
      <description>&amp;gt;&amp;gt; how to get the separator ":" from the output&lt;BR /&gt;&lt;BR /&gt; | tr ":" " "&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; how to get the uniq ip from output except for duplicated ip&lt;BR /&gt;&lt;BR /&gt; | sort -u -k 1,1 &lt;BR /&gt;&lt;BR /&gt;So it could be:&lt;BR /&gt;&lt;BR /&gt;netstat  -n | awk '{ print $5}'| grep ":80 " | tr ":" " " | sort -u -k 1,1&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Apr 2008 01:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script/m-p/4171183#M32076</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-04-01T01:28:48Z</dc:date>
    </item>
  </channel>
</rss>

