摘要:
linux搜索命令:cat -n test.log|grep "地形" 得到"地形"关键字所在的行号是102行. 此时如果我想查看这个关键字前10行和后10行的日志: cat -n test.log |tail -n +92|head -n 20 从第92行开始拿20条日志。 tail -n 10 阅读全文
posted @ 2018-02-24 15:32
天空极限
阅读(116)
评论(0)
推荐(0)
2018年2月24日