This question already has an answer here:
I already figured out that on Linux I can list network devices
(cd /proc/net/dev_snmp6/ && for device in *; do echo $device; done|sort)
but how can I get the ipv4 address of the device?
I do not have ifconfig/ip installed - and I'd like to keep it this way.