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' -- [email protected] mailing list
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' -- [email protected] mailing list