Skip to content

Instantly share code, notes, and snippets.

@lyndell
Last active December 16, 2015 05:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Ping multiple IPs
#/bin/bash -x
#
# Copyright (c) 2015 Lyndell Rottmann
#
# Debug mode on/off: (default off)
set +x
if [ -z "$@" ];then
echo "I can haz IPs?"
exit 1
fi
for I in "$@"
do
ping -c4 $I
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment