Linux 命令之 grep

Linux grep About 111 words

参数含义

  • -C:显示关键词前后几行
  • -B:显示关键词前几行
  • -A:显示关键词后几行
  • --color:显示关键词颜色
  • -n:显示行号

示例

grep "keywords" log.log -C 5 -n --color
Views: 1,646 · Posted: 2019-04-01

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh