Blog

How to search multiple strings using grep ?

Solution –                                   or grep  ‘string1\|string2\|string3’ filename.txt Below are the content of filename.txt –              Linux             Centos             Fedora             Redhat Suppose we have to check if the file contains Centos and Redhat. For that we can run below commands –  …

How to search multiple strings using grep ? Read More »