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
时间: 2024-12-18 08:30:51