sed awk 等工作指令

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

你可能感兴趣的:(awk,sed,等工作指令)