You're replying to a comment by Vineet Kumar.

September 01, 2008, 03:06

My first thought was the same as Uriah, though it ended up being a bit shorter anyway:

ip a | awk '/inet/{print $2}'

'ip a' is one of my most-oft-typed 4-character strings; I currently get 61 from `history | grep ip a | wc -l`.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "linux": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.