#!/bin/sh

for i in $@; do
	( ping -c 1 -W 2 $i 1>/dev/null  2>&1 && echo $i ) &
done
wait
echo
