Skip to content

Instantly share code, notes, and snippets.

@cutewalker
Created June 18, 2014 13:53
Show Gist options
  • Save cutewalker/8148b19910a74a5b1c40 to your computer and use it in GitHub Desktop.
Save cutewalker/8148b19910a74a5b1c40 to your computer and use it in GitHub Desktop.
ping ips in a list
#!/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