Linux command: grep

 

How to use grep to match multiple strings in the same line?

grep 'string1\|string2' filename
grep -E "string1|string2" filename

posted @ 2017-12-02 07:18 emanlee 阅读(...) 评论(...) 编辑 收藏