Alexander Skwar wrote:
But I actually don't quite like the regexp - it's too long... With
perl, I'd use a "non-gready" .*, like so:

then don't use a regex at all:

/sbin/ifconfig eth0 | grep inet | cut -d : -f 2 | cut -d ' ' -f 1

--
gentoo-user@gentoo.org mailing list

Reply via email to