%% From commandlinefu
sudo nmap -sP -PR -oG - /sbin/ip -4 addr show | awk '/inet/ {print $2}' | sed 1d
| grep Up
%% simpler sudo nmap -sP -oG - 192.168.0.0/24 | grep Up
%% From commandlinefu
sudo nmap -sP -PR -oG - /sbin/ip -4 addr show | awk '/inet/ {print $2}' | sed 1d
| grep Up
%% simpler sudo nmap -sP -oG - 192.168.0.0/24 | grep Up