I need to find any un-sed IP's within a specified range...
I set up a file with all of them in it: IP.txt
I then run the following:
cat IP.txt | xargs -n 1 ping -c 10
This produces the following output:
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
no answer from xx.xx.xx.xx
no answer from xx.xx.xx.xx
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
I would like to produce the following output:
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx no answer from
xx.xx.xx.xx no answer from
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
Thanks....
Joe Despres
I set up a file with all of them in it: IP.txt
I then run the following:
cat IP.txt | xargs -n 1 ping -c 10
This produces the following output:
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
no answer from xx.xx.xx.xx
no answer from xx.xx.xx.xx
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
I would like to produce the following output:
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
xx.xx.xx.xx no answer from
xx.xx.xx.xx no answer from
xx.xx.xx.xx is alive
xx.xx.xx.xx is alive
Thanks....
Joe Despres