linux中shell命令,查询多个关键字
grep -E "字符串1|字符串2|字符串3"
或者
egrep "字符串1|字符串2|字符串3"
linux中shell命令,查询多个关键字
grep -E "字符串1|字符串2|字符串3"
或者
egrep "字符串1|字符串2|字符串3"
上一篇:linux 好用高效的命令
下一篇:linux【文件操作】命令详解
1. 前言有时间我们需要查找文件,并不是根据文件名查找文件,而是查看每个文件里的内容是否包括某些关键字,然后把带有特定关键字内容的文件找出来。本文列举出常用的使用命令和案例,希望能给读者一些帮助。2. Linux根据关键字查找文件内容的实用案例 Linux根据关键字查找文件内容的实用案例在linux下如果要查找包含某个关键字的文件,如要在/root/目录下搜索带有关键字“zcwyou”
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M