Skip to content

Instantly share code, notes, and snippets.

@lyndell
Last active December 16, 2015 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lyndell/907eaa7375316d324364 to your computer and use it in GitHub Desktop.
Save lyndell/907eaa7375316d324364 to your computer and use it in GitHub Desktop.
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