Skip to content

Instantly share code, notes, and snippets.

@bitmvr
Created April 4, 2019 15:18
Show Gist options
  • Save bitmvr/8814ec6cedb6aae825abe06eb691cb0d to your computer and use it in GitHub Desktop.
Save bitmvr/8814ec6cedb6aae825abe06eb691cb0d to your computer and use it in GitHub Desktop.
Ping multiple websites by providing pingr a file.
#!/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