for i in `ifconfig -s | tail -n+2 | awk '{print $1;}'`; do echo -n "$i "; ifconfig "$i" | grep 'inet addr:' | perl -ne '/addr:([^\s]+)\s/; print $1."\n";'; done
ifconfig |awk '!/^ / { iff=$1 } /inet addr/ { addr=substr($2,6) } /UP/ { if (addr) print iff,addr }'
alias ips='ip addr show | awk '\''$1 == "inet" && $6 == "global" {if ($7 == "
(
Read more... )