Guest User

Untitled

a guest
Jan 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #!/bin/bash
  2. network='192.168.9.'
  3. c=1
  4. echo "free ip:"
  5. while [ $c -lt 255 ]
  6. do
  7. ip=$network$c
  8. ping -c2 "$ip" >/dev/null || echo "FREE_IP: $ip" &
  9. c=`expr $c + 1`
  10. done
Add Comment
Please, Sign In to add comment