linux 操作比较

作者在 2017-01-16 16:56:21 发布以下内容
grep "query esl" log.txt  | cut -d";" -f4   | cut -d " " -f3-7   | grep "success"   | grep "0"  | cut -d" " -f1   | sort   | uniq -c   | sort
grep "query esl" log.txt  | cut -d";" -f4   | cut -d " " -f3-7   | grep "success"   | grep "1"  | cut -d" " -f1   | sort   | uniq -c   | sort
grep "query esl" log.txt  | cut -d";" -f4   | cut -d " " -f3-7   | grep "failed"   | cut -d" " -f1   | sort   | uniq -c   | sort        
grep "netlink for" log.txt |cut -d";" -f4 |grep "failed" |cut -d" " -f3 |uniq -c |sort
grep "netlink for" log.txt |cut -d";" -f4 |grep "success" |cut -d" " -f3 |uniq -c |sort

bash: ./eslworking.sh: /bin/sh^M: 解释器错误: 没有那个文件或目录
sed -i 's/\r$//' server.sh 
还可以用 vim 打开文件,然后执行冒号命令: 
代码:
:set ff=unix :wq
LInux | 阅读 1470 次
文章评论,共0条
游客请输入验证码
浏览2354411次