brullo nulla wrote:
Wow. You evil geniuses of regular expressions! °_°

can even shorten it with just one sed expression:

/sbin/ifconfig eth0 | sed -n 's/^.*inet addr:\([^ ]*\) .*$/\1/p'


--
gentoo-user@gentoo.org mailing list

Reply via email to