Script di Andrea
#!/bin/bash
if [ "$1" == "" ]
then
echo "Hai dimenticato un indirizzo ip come parametro!"
else
for ip in {1..254}
do ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &
done
fi
software libero tra gli studenti
#!/bin/bash
if [ "$1" == "" ]
then
echo "Hai dimenticato un indirizzo ip come parametro!"
else
for ip in {1..254}
do ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &
done
fi