Search Multiple Words / String Pattern Using grep Command on Bash shell – nixCraft

Search Multiple Words / String Pattern Using grep Command on Bash shell – nixCraft

How do I search multiple strings or words using the grep command? For example I’d like to search word1, word2, word3 and so on within /path/to/file. How do I force grep to search multiple words? How can I grep for multiple patterns on Linux, OS X, FreeBSD, or Unix-like system?

The grep command supports regular expression pattern.

来源: Search Multiple Words / String Pattern Using grep Command on Bash shell – nixCraft

好烂啊有点差凑合看看还不错很精彩 (No Ratings Yet)
Loading...
301 views

发表评论

电子邮件地址不会被公开。 必填项已用*标注

跳至工具栏