Create a gist now

Instantly share code, notes, and snippets.

@lyndell /fping.sh
Last active Dec 16, 2015

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