NIC IP detection

original sed command was not working for me