securt 快速搜索日志及上传下载

来源:互联网 发布:网络女主播自我介绍 编辑:程序博客网 时间:2024/05/29 16:44

hi:

   今天跟同事学到一招  把日志查询到一个文件夹里面 在下载文件看日志:grep -n -C 2 "update payment_mode_brand" base-2017-08-19.log >> ~/gg.txt 。

比起下面这2句好用的多:

  cat -n test.log |grep "地形"

cat -n test.log |tail -n +92|head -n 20


具体怎么下载和上传转这个地方:http://www.cnblogs.com/felixzh/p/5920255.html


原创粉丝点击