Created
June 18, 2014 13:53
-
-
Save cutewalker/8148b19910a74a5b1c40 to your computer and use it in GitHub Desktop.
ping ips in a list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IP_LIST=("a" "b" "c") | |
for ip in ${IP_LIST[*]}; do | |
ping -c 6 $ip | |
echo " " | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment