<?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: Script help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684979#M102938</link>
    <description>How about a simple grep/wc?&lt;BR /&gt;&lt;BR /&gt;grep xxx.xxx.xxx /etc/hosts |wc -l&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Mon, 05 Dec 2005 15:14:57 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2005-12-05T15:14:57Z</dc:date>
    <item>
      <title>Script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684978#M102937</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to know how to search through the host table to match computers on a particular subnet, then to give the total number matched at the end using a while loop or something (my scripting knowledge is very limited).&lt;BR /&gt;&lt;BR /&gt;Any ideas would be greatly appreciated.</description>
      <pubDate>Mon, 05 Dec 2005 15:08:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684978#M102937</guid>
      <dc:creator>Diesel</dc:creator>
      <dc:date>2005-12-05T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684979#M102938</link>
      <description>How about a simple grep/wc?&lt;BR /&gt;&lt;BR /&gt;grep xxx.xxx.xxx /etc/hosts |wc -l&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 05 Dec 2005 15:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684979#M102938</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-12-05T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684980#M102939</link>
      <description>This could get a bit more complex depending on how your subnets are configured. Generally, you can do something like this, however:&lt;BR /&gt;&lt;BR /&gt;grep -c ^&lt;A href="http://WWW.XXX.YYY." target="_blank"&gt;WWW.XXX.YYY.&lt;/A&gt; /etc/hosts&lt;BR /&gt;&lt;BR /&gt;-c returns the count instead of the matches (saves the piping of grep to wc)&lt;BR /&gt;&lt;BR /&gt;^ only matches if the address is at the beginning of the line (avoids grabbing commented lines)</description>
      <pubDate>Mon, 05 Dec 2005 15:22:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684980#M102939</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-12-05T15:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684981#M102940</link>
      <description>Thanks guys! That's what I needed.  &lt;BR /&gt;&lt;BR /&gt;And thanks Jeff for the detailed explanation. It helps the newbies like myself.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/3684981#M102940</guid>
      <dc:creator>Diesel</dc:creator>
      <dc:date>2005-12-05T16:02:23Z</dc:date>
    </item>
  </channel>
</rss>

