urfile:
aaa056: /dev/cciss/c0d0p5 253906388 970052 240038556 1% /tmp
aaa058: /dev/cciss/c0d0p5 253906388 942868 240065740 1% /tmp
aaa057: /dev/cciss/c0d0p5 253906388 970148 240038460 1% /tmp
aaa062: /dev/cciss/c0d0p5 253906388 22668216 218340392 90% /tmp
aaa060: /dev/cciss/c0d0p5 253906388 74932120 166076488 92% /tmp
aaa055: /dev/cciss/c0d0p5 253906388 973260 240035348 1% /tmp
aaa061: /dev/cciss/c0d0p5 253906388 60850956 180157652 96% /tmp
aaa059: /dev/cciss/c0d0p5 253906388 85325864 155682744 96% /tmp
aaa063: /dev/cciss/c0d0p5 253906388 15780676 225227932 7% /tmp
outfile:
aaa053: full !! 100% /tmp
aaa062: full !! 90% /tmp
aaa060: full !! 92% /tmp
aaa061: full !! 96% /tmp
aaa059: full !! 96% /tmp
awk '$(NF-1)~/^9[0-9]|^100/{print $1,"full !!",$(NF-1),$NF}' urfile
sed 's/%//' urfile | awk '$(NF-1)>=90{print $1" full !! "$(NF-1),$NF}'
阅读(488) | 评论(0) | 转发(0) |