Linux 常用操作指令

-- 查询文件中的关键字,以及关键字的前后30行和前20行
grep -A 30 -B 20 "addFilePerByBatch"  abc_out.log

原文地址:https://www.cnblogs.com/20000ding/p/9950330.html