sed -e ‘s/SB[-_][a-zA-Z].*[0-9]*-/192.168./g‘ sandboxip > a
sed -e ‘s/[A-Z].*[-_][a-zA-Z].*[0-9]*-/192.168./g‘ sandboxip > a
awk ‘!a[$1]++‘ st3ip
find /opt/log/ -ftype f -mtime 3 -exec rm -rf {} \;
awk ‘NR%2==0‘ FILE
awk ‘NR%2==1‘ FILE
awk ‘!a[$1]++‘ FILE
本文出自 “DavideyLee” 博客,请务必保留此出处http://davideylee.blog.51cto.com/8703117/1533244
原文地址:http://davideylee.blog.51cto.com/8703117/1533244