You're viewing a comment by SK and its responses.

December 26, 2008, 11:10

Looks like that's due to the differences in the output formats on different machines.

On Solaris, the following works - 33 chars:

ifconfig -a|awk '/inet/{print$2}'

or even the following - 32 chars:

ifconfig -a|awk '/ine/{print$2}'

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 "security": (just to make sure you're a human)

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