- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to increment a number
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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.