Linux中实用grep搜索数据
grep第一种常用用法为 grep [pattern] [file],即在file中搜索patten
实用ubuntu18.04 作为测试环境,先建立测试文件

image.png
在grep 中搜索 ee 字符串
$ grep ee test_grep .txt

image.png
反向搜索需要加上 -v 选项,示例如下:

image.png
实际实用过程中通常和管道配合使用

image.png
Linux中实用grep搜索数据
grep第一种常用用法为 grep [pattern] [file],即在file中搜索patten
实用ubuntu18.04 作为测试环境,先建立测试文件
在grep 中搜索 ee 字符串
$ grep ee test_grep .txt
反向搜索需要加上 -v 选项,示例如下:
实际实用过程中通常和管道配合使用