ripgrep

https://github.com/chinanf-boy/ripgrep-zh 可以获取安装指南和教程

记录几个基本的命令

rg 'commit' api.log -A 50 
查询指定文字后 50 行内容

rg 'commit' api.log -C 50 
查询指定文字前后 50 行内容

rg 'commit' api.log -c
统计匹配行数
posted @ 2022-11-18 10:03  LiuChengloong  阅读(73)  评论(0编辑  收藏  举报