ZhangZhihui's Blog  

The syntax is:

  1. Use extended regular expressions: grep -E 'pattern1|pattern2' *.py
  2. Try on older Unix shells/oses: grep -e pattern1 -e pattern2 *.pl
  3. Another option to grep two strings: grep 'word1\|word2' input
posted on 2023-07-07 16:47  ZhangZhihuiAAA  阅读(8)  评论(0编辑  收藏  举报