Scan of the Local Network

nmap -sPn $(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' |
grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | cut -d . -f -3).2-254 | grep [[:digit:]]$