搜索关键字在日志中的位置:grep -n “86eb6cad-8604-4535-9f9e-2239e672efcd” test.log
查看指定行数后的多少行:head -22279 test.log|tail -102

打赏
Linux搜索日志并指定行数
Tagged on:

发表评论