快速处理wsa的脚本
#!/bin/bash cat n.txt |sed 's/:0%;/\n/g'|sed 's/.*warning....//g'|grep -Ev '(occur|8800)'|sort -n|uniq|sed 's/^/bind :/g'
处理mtop的脚本
#!/bin/bash cat h.txt|sed 's/Port://g'|sed 's/ /\n/g'|sed -e '/^$/d'|sort -n|uniq|sed 's/^/ bind :/g'
原文地址:http://blog.csdn.net/dapeng0112/article/details/39933037