Skip to content

Instantly share code, notes, and snippets.

@davidohne
davidohne / ping_zattoo.sh
Last active March 25, 2020 09:18 — forked from greatghoul/pingall.sh
Ping multiple hosts and sort result by avg duration
#!/bin/bash
#script to ping multiple websites
#add websites you want to ping to the websites.txt file
#the output will be saved into results.txt
websitesFile=websites.txt
websiteList=$(cat $websitesFile |tr "\n" " ")
websites=($websiteList)
outputFile=results.txt