Created
April 9, 2014 16:28
-
-
Save nestoru/10289125 to your computer and use it in GitHub Desktop.
Ping multiple hosts from 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
echo yahoo.com > hosts | |
echo google.com >> hosts | |
for host in `cat hosts` do; ping $host; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment