grep 'str' -B 10 -A 5 filename
这句话的意思是:在filename这个文件中查找str字符串,并显示它的前10行和后5行
文章标签 Linux grep 文章分类 运维
grep 'str' -B 10 -A 5 filename
这句话的意思是:在filename这个文件中查找str字符串,并显示它的前10行和后5行
加密:为你的长字符串提供最高级别的保护!!!
Linux命令之grep……
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M