Is there a clean, simple way to get an IP address for a network interface from /proc, similar to the way I can get the MAC address for a network interface?
Ideally I would just type cat /proc/<foo>/{interface_name} and get the IPv4 address.
I'd rather not run anything other than cat.