This file contains hidden or 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 | |
#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 |