<?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: how to increment a number in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059403#M64644</link>
    <description>You would need to download nmap.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://insecure.org/nmap/download.html" target="_blank"&gt;http://insecure.org/nmap/download.html&lt;/A&gt;</description>
    <pubDate>Fri, 20 Jul 2007 13:26:03 GMT</pubDate>
    <dc:creator>Court Campbell</dc:creator>
    <dc:date>2007-07-20T13:26:03Z</dc:date>
    <item>
      <title>how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059395#M64636</link>
      <description>This is my script: (not complete yet have to incorporate a do loop and an if count is &amp;gt; 100 to stop&lt;BR /&gt;&lt;BR /&gt;count=0&lt;BR /&gt;echo $count&lt;BR /&gt;  perform some function&lt;BR /&gt;(($count = $count + 1))&lt;BR /&gt;echo  " the new count is "$count&lt;BR /&gt; &lt;BR /&gt;Purpose is to check 100 things and the only thing different is the last diget(s)&lt;BR /&gt;&lt;BR /&gt;It can't be that hard, but it has been a LONG day.&lt;BR /&gt;&lt;BR /&gt;Points awarded promptly.</description>
      <pubDate>Fri, 20 Jul 2007 12:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059395#M64636</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2007-07-20T12:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059396#M64637</link>
      <description>This may give you a good start&lt;BR /&gt;&lt;BR /&gt;for x in `seq 1 100`&lt;BR /&gt;do&lt;BR /&gt;echo $x&lt;BR /&gt;done</description>
      <pubDate>Fri, 20 Jul 2007 12:22:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059396#M64637</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-07-20T12:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059397#M64638</link>
      <description>if you post more about what you are trying to accomplish with examples the community would be more than glad to help out.</description>
      <pubDate>Fri, 20 Jul 2007 12:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059397#M64638</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-07-20T12:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059398#M64639</link>
      <description>&lt;!--!*#--&gt;Court,&lt;BR /&gt;Thanks for the reply.  Basically we would like a script to go out on our network and see which IP's exist.&lt;BR /&gt;&lt;BR /&gt;Start with 1.2.3.X&lt;BR /&gt;&lt;BR /&gt;Do loop begins here&lt;BR /&gt;Ping to see if 1.2.3.X exists &amp;gt;&amp;gt; /tmp/ping_results&lt;BR /&gt;test to see if X is = 256&lt;BR /&gt;if it is exit &lt;BR /&gt;if not increment X + 1 (and remain in loop)&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;Charles</description>
      <pubDate>Fri, 20 Jul 2007 13:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059398#M64639</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2007-07-20T13:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059399#M64640</link>
      <description>I am all for scripting, but I think an easier solution would be to download angry ip scanner on a windows machine and scan the whole subnet.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.angryziber.com/ipscan/" target="_blank"&gt;http://www.angryziber.com/ipscan/&lt;/A&gt;</description>
      <pubDate>Fri, 20 Jul 2007 13:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059399#M64640</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-07-20T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059400#M64641</link>
      <description>and you could always use nmap.&lt;BR /&gt;&lt;BR /&gt;# nmap -sP 192.168.10.0/24</description>
      <pubDate>Fri, 20 Jul 2007 13:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059400#M64641</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-07-20T13:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059401#M64642</link>
      <description>With this script and an in_list file containing all the addresses to test it works fine&lt;BR /&gt;&lt;BR /&gt;for I in `cat /root/in_list`&lt;BR /&gt;do&lt;BR /&gt;echo " Now testing address" $I&lt;BR /&gt;ping -c 2 $I &amp;gt;&amp;gt; /tmp/out_list&lt;BR /&gt;echo " "&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I just don't want to create the entire in_list file.&lt;BR /&gt;&lt;BR /&gt;I'll look at the link you provided and eval.&lt;BR /&gt;&lt;BR /&gt;Charles</description>
      <pubDate>Fri, 20 Jul 2007 13:16:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059401#M64642</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2007-07-20T13:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059402#M64643</link>
      <description>what is nmap?  I have looked on my HPUX boxes, my Linux box and tried it from a command window on my desktop.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jul 2007 13:19:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059402#M64643</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2007-07-20T13:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059403#M64644</link>
      <description>You would need to download nmap.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://insecure.org/nmap/download.html" target="_blank"&gt;http://insecure.org/nmap/download.html&lt;/A&gt;</description>
      <pubDate>Fri, 20 Jul 2007 13:26:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059403#M64644</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-07-20T13:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059404#M64645</link>
      <description>I have tried the first link you provided.  I tried running in from the web site and our AV would not allow it to run.  I downloaded the .ZIP file and tried to extract it but the AV rejected it again.&lt;BR /&gt;&lt;BR /&gt;We will look at the nmap product and see what it looks like.</description>
      <pubDate>Fri, 20 Jul 2007 13:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059404#M64645</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2007-07-20T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059405#M64646</link>
      <description>Generate the list pretty quick with this.&lt;BR /&gt;Just change the -le 150  to the last IP number i used 150 as example, and change xx.xx as well. &lt;BR /&gt;&lt;BR /&gt;hou00us:~&amp;gt;  i=0; while [ $i -le 150 ]; do printf "10.xx.xx.%d\n" $i ;i=`expr $i + 1`; done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;10.xx.xx.0&lt;BR /&gt;10.xx.xx.1&lt;BR /&gt;10.xx.xx.2&lt;BR /&gt;10.xx.xx.3&lt;BR /&gt;10.xx.xx.4&lt;BR /&gt;10.xx.xx.5&lt;BR /&gt;10.xx.xx.6&lt;BR /&gt;10.xx.xx.7&lt;BR /&gt;10.xx.xx.8&lt;BR /&gt;10.xx.xx.9&lt;BR /&gt;10.xx.xx.10&lt;BR /&gt;&amp;lt;&amp;lt;&lt;CUT&gt;&amp;gt;&amp;gt;&lt;BR /&gt;10.xx.xx.150&lt;/CUT&gt;</description>
      <pubDate>Fri, 20 Jul 2007 13:49:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059405#M64646</guid>
      <dc:creator>Justin_99</dc:creator>
      <dc:date>2007-07-20T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059406#M64647</link>
      <description>c=0;&lt;BR /&gt;command|while read a&lt;BR /&gt;do&lt;BR /&gt;((c=c+$a))&lt;BR /&gt;done</description>
      <pubDate>Fri, 20 Jul 2007 17:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059406#M64647</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-07-20T17:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059407#M64648</link>
      <description>Charles,&lt;BR /&gt;  If you use bash shell you can use a for loop&lt;BR /&gt;very similar to C language syntax&lt;BR /&gt;&lt;BR /&gt;for ((i=1; i&amp;lt;=100; i++))&lt;BR /&gt;do&lt;BR /&gt; echo $i&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Sat, 21 Jul 2007 20:38:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059407#M64648</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2007-07-21T20:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059408#M64649</link>
      <description>hi Charles,&lt;BR /&gt;&lt;BR /&gt;below an example of the nmap output:&lt;BR /&gt;=========================================&lt;BR /&gt;# nmap -sP 1.2.3.0/24 &lt;BR /&gt;Starting nmap 3.70 ( &lt;A href="http://www.insecure.org/nmap/" target="_blank"&gt;http://www.insecure.org/nmap/&lt;/A&gt; ) at 2007-07-23 09:14 MUT&lt;BR /&gt;Host 1.2.3.0 seems to be a subnet broadcast address (returned 10 extra pings). Note -- the actual IP also responded.&lt;BR /&gt;MAC Address: 00:0E:38:6F:FB:00 (Cisco Systems)&lt;BR /&gt;Host 1.2.3.1 appears to be up.&lt;BR /&gt;MAC Address: 00:03:6B:A7:0A:60 (Cisco Systems)&lt;BR /&gt;Host 1.2.3.2 appears to be up.&lt;BR /&gt;MAC Address: 00:17:E0:7E:98:96 (Unknown)&lt;BR /&gt;Host 1.2.3.3 appears to be up.&lt;BR /&gt;MAC Address: 00:0F:F7:16:1F:1E (Cisco Systems)&lt;BR /&gt;Host 1.2.3.4 appears to be up.&lt;BR /&gt;MAC Address: 00:0F:F7:16:1F:22 (Cisco Systems)&lt;BR /&gt;Host 1.2.3.5 appears to be up.&lt;BR /&gt;MAC Address: 00:11:85:F9:49:7A (Unknown)&lt;BR /&gt;Host 1.2.3.6 appears to be up.&lt;BR /&gt;MAC Address: 00:0E:38:50:97:80 (Cisco Systems)&lt;BR /&gt;Host 1.2.3.7 appears to be up.&lt;BR /&gt;MAC Address: 00:12:79:CF:55:ED (Unknown)&lt;BR /&gt;Host 1.2.3.8 appears to be up.&lt;BR /&gt;MAC Address: 00:12:79:CF:56:9F (Unknown)&lt;BR /&gt;Host 1.2.3.9 appears to be up.&lt;BR /&gt;MAC Address: 00:12:79:CF:55:ED (Unknown)&lt;BR /&gt;...&lt;BR /&gt;Host 1.2.3.251 appears to be up.&lt;BR /&gt;MAC Address: 00:16:17:5D:07:31 (Unknown)&lt;BR /&gt;Host 1.2.3.252 appears to be up.&lt;BR /&gt;MAC Address: 00:16:17:5C:EA:5C (Unknown)&lt;BR /&gt;Host 1.2.3.253 appears to be up.&lt;BR /&gt;MAC Address: 00:0C:29:74:2E:79 (VMware)&lt;BR /&gt;Host 1.2.3.254 appears to be up.&lt;BR /&gt;MAC Address: 00:0E:38:6F:FB:00 (Cisco Systems)&lt;BR /&gt;Host 1.2.3.255 seems to be a subnet broadcast address (returned 13 extra pings). Note -- the actual IP also responded.&lt;BR /&gt;MAC Address: 00:0E:38:6F:FB:00 (Cisco Systems)&lt;BR /&gt;Nmap run completed -- 256 IP addresses (167 hosts up) scanned in 6.706 seconds&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;See if this is acceptable else we will have to work it out using scripts!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jul 2007 00:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059408#M64649</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-07-23T00:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059409#M64650</link>
      <description>situation resolved, Thanks to all who answered the call.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 23 Jul 2007 05:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059409#M64650</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2007-07-23T05:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to increment a number</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059410#M64651</link>
      <description>Done.</description>
      <pubDate>Mon, 23 Jul 2007 05:52:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-increment-a-number/m-p/5059410#M64651</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2007-07-23T05:52:36Z</dc:date>
    </item>
  </channel>
</rss>

