
6 Mar
2013
6 Mar
'13
11:21 p.m.
Russell Coker <russell@coker.com.au> 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.