You're replying to a comment by Peter Krumins.

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 handle, if you have one.)

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

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