[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 5/5] hotplug/linux: Add IPv6 support to vif-route
>>> +ip6_of() >>> +{ >>> + ip -6 addr show primary dev "$1" | perl -wane '/scope global/ && >>> /inet6 (([0-9a-f]+:*)+)/ && print $1;' >> >> Hrm, Perl again. Can this be done with awk? Looks tricky though. > > Something like: > awk '/inet6 .* scope global/ { split($2, v6, "/"); print v6[1] }' > Yes, I already found substitute for all the perl in my patch using awk. Will be resubmitted on monday. Cheers, Sylvain _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |