In local.freenet, you wrote:
> /sbin/ifconfig | sed s/:/\ /g | awk '/inet\ addr/ && !/\ 192\.168\./ &&
> !/\ 10\./ && !/\ 172\.((1[6-9])|(2[0-9])|(3[0-1]))/ && !/\ 127\./ {
> print $3 }'
>
> Maybe there is a better output mode...
/sbin/ifconfig -a | "$AWK" '/inet .+[[:digit:]]\./ {print
substr($2,index($2,":")+1); exit}'
then filter out private IPs (does nobody read the bug-reports?).
--
Volker Stolz * vs at foldr.org * PGP + S/MIME
_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl