You're viewing a comment by Peteris Krumins and its responses.

September 30, 2008, 05:23

simpleton, just count the characters in the string.

ifconfig|perl -nE'/dr:(\S+)/&&say$1' is 34 characters not 36 as you suggest. Just 'echo -n ... | wc -c' it!

Your solution does not quite work. It does not list 127.0.0.1. Also, and IP can take 15 chars max (xxx.xxx.xxx.xxx), and you cut just 10...

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

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