I am working on a shell script that needs to know the logical name (eth0, eth1, etc.) associated with this ip. The current procedure I'm using is to analyze ifconfig output using filters and get the NIC map associated with this IP. I was wondering if there is an easier way or direct linux pipelining command to get the above details?
source share