The syntax is: Use extended regular expressions: grep -E 'pattern1|pattern2' *.py Try on older Unix shells/oses: grep -e pattern1 -e pattern2 *.pl Another option to grep two strings: grep 'word1\|word2' input 本栏目推荐文章微信小程序 取列表的for循环的第一个值SHARPNESS-AWARE MINIMIZATION FOR EFFICIENTLY IMPROVING GENERALIZATION论文阅读笔记8- for循环与range()7 - for循环while循环 1+2+...+100和如何让Visual Studio Tools for Unity插件用于调试你自己的Mono嵌入应用程序6- for循环grep《RAPL: A Relation-Aware Prototype Learning Approach for Few-Shot Document-Level Relation Extraction》阅读笔记An improved LSTM-based model for identifying high working intensity load segments of the tractor load spectrum【Leetcode1949. 坚定的友谊】使用MySQL在无向图中寻找{"CompleteTripartite", {1, 1, 3}}这个patternmultiple patterns Grep formultiple patterns grep for multiple patterns target error 文件 内容grep for grep multiple multiples 命令grep 正则grep multiplication grep_sed_awk