Answer the question
In order to leave comments, you need to log in
What's wrong with the attached bash one-liner?
echo $(for i in {100..104}; do ping –c 1 192.168.55.$i >/dev/null && echo 192.168.55.$i is up; done)
Answer the question
In order to leave comments, you need to log in
echo $(for i in {100..104}; do ping 192.168.55.$i -c 1 >&/dev/null && echo 192.168.55.$i is up; done)
seq 100 104|xargs -i sh -c 'ping -c 1 192.168.55.{} >&/dev/null && echo 192.168.55.{} is up'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question