Posted By

laforge on 10/14/10


Tagged

Bash networking iproute2


Versions (?)

Getting the ip address of an interface on linux


 / Published in: Bash
 

  1. ip addr list | grep -E "global eth0$"|awk -F" " '{print $2}'|sed 's/\/.*$//g'

Report this snippet  

You need to login to post a comment.