Get IP address quickly
ifconfig
ifconfig eth0 | awk NR==2 | awk '{print $2}'
Get mac address quickly
ifconfig
ifconfig eth0 | awk NR==4 | awk '{print $4}'
(Note: NR and FNR are used here
Get IP address quickly
ifconfig
ifconfig eth0 | awk NR==2 | awk '{print $2}'
Get mac address quickly
ifconfig
ifconfig eth0 | awk NR==4 | awk '{print $4}'
(Note: NR and FNR are used here