This is the first push to this repo with my dotfiles
[dotfilesold/.git] / scripts / discover.sh
1 #!/bin/bash
2
3 #nmap -sn 192.168.18.83/25 | grep 192 > log.txt && awk '{print $5}' log.txt | grep 192  | tee log.txt 
4 #for HOST in $(cat log.txt ) ; do ssh $HOST "uname -a" ; done
5 nmap -sn $1 > log.txt
6 grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" log.txt > iplist