专注 K8S研究
分类:
2010-09-28 14:45:52
chinaboywg2010-09-28 14:46:55
awk '/address/{print $2;next}1' test
cut -f 2 -d" " lines
sed '/address/s/.* \([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\) .*/\1/' urfile
awk '{if($2)$1=$2;print $1}' urfile