摘要: 1、定位错误关键字所在行数 cat -n test.log |grep "查找的错误关键字" 2、得到错误关键字所在行号(假设为第500行),查询错误关键字前后100行数据 cat -n test.log |tail -n +400|head -n 200 (表示从第400行开始往后查询200行数据 阅读全文
posted @ 2018-01-08 18:35 Vincent-Li 阅读(8096) 评论(0) 推荐(0) 编辑