- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- how to increment a number
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 05:07 AM
07-20-2007 05:07 AM
count=0
echo $count
perform some function
(($count = $count + 1))
echo " the new count is "$count
Purpose is to check 100 things and the only thing different is the last diget(s)
It can't be that hard, but it has been a LONG day.
Points awarded promptly.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 05:22 AM
07-20-2007 05:22 AM
Re: how to increment a number
for x in `seq 1 100`
do
echo $x
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 05:26 AM
07-20-2007 05:26 AM
Re: how to increment a number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 06:03 AM
07-20-2007 06:03 AM
Re: how to increment a number
Thanks for the reply. Basically we would like a script to go out on our network and see which IP's exist.
Start with 1.2.3.X
Do loop begins here
Ping to see if 1.2.3.X exists >> /tmp/ping_results
test to see if X is = 256
if it is exit
if not increment X + 1 (and remain in loop)
end
Charles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 06:07 AM
07-20-2007 06:07 AM
Re: how to increment a number
http://www.angryziber.com/ipscan/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 06:16 AM
07-20-2007 06:16 AM
Re: how to increment a number
# nmap -sP 192.168.10.0/24
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 06:16 AM
07-20-2007 06:16 AM
Re: how to increment a number
for I in `cat /root/in_list`
do
echo " Now testing address" $I
ping -c 2 $I >> /tmp/out_list
echo " "
done
I just don't want to create the entire in_list file.
I'll look at the link you provided and eval.
Charles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 06:19 AM
07-20-2007 06:19 AM
Re: how to increment a number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 06:26 AM
07-20-2007 06:26 AM
Re: how to increment a number
http://insecure.org/nmap/download.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-20-2007 06:42 AM
07-20-2007 06:42 AM
Re: how to increment a number
We will look at the nmap product and see what it looks like.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP