All pastes #969064 Raw Edit

poormanmap

public shellscript v1 · immutable
·published 2008-04-03 13:36 UTC
rendered paste body
a=0; while [ $a -lt 255 ]do  b=0; while [ $b -lt 255 ]  do    echo sweeping through 10.$a.$b.*    c=0; while [ $c -lt 255 ]    do      c=`echo $c+1 | bc`      if ping -t 1 -i 1 -c 1 10.$a.$b.$c | grep -q '0 packets received'      then   	  echo -n " "      else     	  echo -n "."      fi    done    echo    b=`echo $b+1 | bc`  done  a=`echo $a+1 | bc`done