📜  grep 中的 OR 语句 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:56.906000             🧑  作者: Mango

代码示例1
# add the -e flag and use \| to do an OR operator in grep

grep -e 'pattern1\|pattern2' filename