egrep 可以看着是grep的扩展,参数-e支持正则匹配

满足其中任一条件

egrep -e "tiaojian1|tiaojian2" test.txt

 posted on 2019-08-26 14:42  xibuhaohao  阅读(203)  评论(0编辑  收藏  举报