• sed cat 命令


    #检测


    sed '/2019-12-16 00:00:00/,/2019-12-16 17:20:00/p' /store/logs/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/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/freight-py/taobao/2019-11-27/freight.log | grep "requests.exceptions.ConnectTimeout" | grep "connect timeout=3"|wc -l

    sed '/2020-06-11 21:59:00/,/2020-06-11 22:01:00/p' /store/logs/rob_shoes_py/SNKRS/2020-06-11/spiderPy.log | grep 'app 预售列表解析datas_list:' | grep 'CQ3989-001'

    cat /store/logs/price-py/Goods/2020-01-19/spiderPy.log |grep -E '2020-01-19 10 |2020-01-19 12' | grep "调用商品爬虫参数" | wc -l

  • 相关阅读:
    孙权劝学
    劝学
    为学
    字符串的全排列
    剑指offer面试题3二维数组中的查找
    如何正确安装软件
    写给自己的话
    Linux常用命令
    第三届华为杯
    D^3ctf两道 pwn
  • 原文地址:https://www.cnblogs.com/gqv2009/p/12215177.html
Copyright © 2020-2023  润新知