SyntaxFix
Write A Post
Hire A Developer
Questions
Use grep:
grep -wE "string1|String2|...." file_name
Or you can use:
echo string | grep -wE "string1|String2|...."