Russell Coker <[email protected]> writes: > http://etbe.coker.com.au/2010/12/08/dynamic-dns/ > IP=$(ip addr list $1|sed -n -e "s/\/.*$//" -e "s/^.*inet //p")
Saw this in moreutils a while back, NFI if it's any good.
$ ifdata -pa eth0
203.7.155.89
For ip, you might want to use -o and -4 also.
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main
