会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
勇往直前
博客园
首页
新随笔
联系
订阅
管理
2022年10月11日
grep 命令使用
摘要: egrep 相当于 grep -E grep -A -B -C(大写) 后面都跟阿拉伯数字 -A是显示匹配后和它后面的n行。after -B是显示匹配行和它前面的n行。 before-C是匹配行和它前后各n行。 context 例如:grep -A 1 hello test.txt 就是搜索test
阅读全文
posted @ 2022-10-11 11:52 JennyYu
阅读(137)
评论(0)
推荐(0)
编辑