scratch wrote: > > On Mon, 21 Jun 1999, R. Brock Lynn wrote: > > > > /sbin/ifconfig | grep P-t-P | cut -d: -f2 | cut -d" " -f1 > > > > nice, now can you do that with a perl one-liner? :) > > Something like this? > perl -e 'print (`/sbin/ifconfig` =~ /inet addr:(.*?)\s/);'
oohh nifty. Now let's see if I can figure out how it works. :) (no don't tell me now! I took the usenix perl tutorials... I should know... :\ --Brock --------------------- PGP key ID: FED76A3D <[EMAIL PROTECTED]> 4 / 5 / 1999 __ _ Debian GNU R. Brock Lynn <[EMAIL PROTECTED]> / /(_)_ __ _ ___ __ http://www.debian.org/ irc.openprojects.net / / | | '_ \| | | \ \/ / 'Free Software' / /__| | | | | |_| |> < Remember that's "Free" as in Freedom, not "Free" as \____/_|_| |_|\__,_/_/\_\ in price! Debian's the Greatest!