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

wcoder Permalink
October 05, 2010, 00:55

ifconfig|awk '-F[ :]+' '/inet addr:/{print $4}'

if you want iface->IP:

ifconfig|awk '-F[ :]+' '/^[a-z]/{i=$1}/inet addr:/{print i,$4}'

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

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