I am trying to parse some data from ifconfig output with sed, but I am not able to do it correctly. I want the command to extract just the number I am after.
For exa
grep
ifconfig | grep -oP '(?<=RX bytes:)[0-9]*'
awk
ifconfig | awk -F: '/RX bytes/{print $2+0}'