Created
April 4, 2019 15:18
-
-
Save bitmvr/8814ec6cedb6aae825abe06eb691cb0d to your computer and use it in GitHub Desktop.
Ping multiple websites by providing pingr a file.
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
#!/usr/bin/env bash | |
while IFS='' read -r line || [[ -n "$line" ]]; do | |
printf '=%.0s' {1..100} | |
printf '\n' | |
echo "${line}" | |
printf '=%.0s' {1..100} | |
printf '\n' | |
ping -q -c 1 $line | |
printf '\n' | |
done < "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment