sed cat 命令
Posted gqv2009
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sed cat 命令相关的知识,希望对你有一定的参考价值。
检测
sed ‘/2019-12-16 00:00:00/,/2019-12-16 17:20:00/p‘ /store/logs/goods-freight-py/taobao/2019-12-16/freight.log | grep " 耗时:"
总请求:
sed ‘/2019-11-27 00:00:00/,/2019-11-27 17:20:00/p‘ /store/logs/goods-freight-py/taobao/2019-11-27/freight.log | grep " 耗时:" | wc -l
超时:ConnectTimeout
sed ‘/2019-11-27 00:00:00/,/2019-11-27 17:20:00/p‘ /store/logs/goods-freight-py/taobao/2019-11-27/freight.log | grep "requests.exceptions.ConnectTimeout" | grep "connect timeout=3"|wc -l
cat /store/logs/taobao-goods-price-py/taobaoGoods/2020-01-19/spiderPy.log |grep -E ‘2020-01-19 10 |2020-01-19 12‘ | grep "调用天猫商品爬虫参数" | wc -l
以上是关于sed cat 命令的主要内容,如果未能解决你的问题,请参考以下文章
1Linux基础命令-vi cat echo sed tail