ping -c 3 -n 192.168.0.1 | grep transmitted | perl -pe 's/^.*(\d+)\%.*$/$1/'