Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is this possible/easy?
- X-seq: zsh-users 741
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: gt5076c@xxxxxxxxxxxxxx (Jason Price)
- Subject: Re: Is this possible/easy?
- Date: Mon, 3 Mar 1997 16:49:07 +0000 (GMT)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199703031606.LAA05312@xxxxxxxxxxxxxxxxxxxx> from "Jason Price" at Mar 3, 97 11:06:50 am
Jason Price wrote:
>I need to generate a script to ping all the IP addresses in a couple
>of class C's. (So we can double check our records, and see which are
>in use) Is there a way to generate this easilly?
for n in {0..255}; do
ping 150.150.150.$n
done
or, with 3.1, and less dependent on options,
for((n=0; n<256; n++)); do
ping 150.150.150.$n
done
I actually have a program that performs a related task, that uses both
of the above methods at different points, for maximal efficiency.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author