Linux命令之grep

2018-3-22 diaba Linux

grep 同时满足多个关键字和满足任意关键字 grep 同时满足多个关键字和满足任意关键字 ① grep -E "word1|word2|word3"   file.txt    满足任意条件(word1、word2和word3之一)将匹配。 ② grep word1 file.txt | grep word2 |grep word3    必须同时满足三个条件(word1、word2和word3)才匹配。

阅读全文>>

标签: grep

评论(0) 浏览(2550)

Powered by emlog 京ICP备15045175号-1 Copyright © 2022