I'm trying to make a ping sweep using bash:
#!/bin/bash
for x in seq 74 254
do
ping -w 4 192.168.1.$x
done
According to what I've read on the Internet this should be looping from 74 to 254 but outputs only results from 74 and 254.
What am I doing wrong ?