HOW TO : Search for multiple words in a string using grep
Just for my records grep “WORD\|ANOTHER\|NEITHER” string searches for either “WORD” or “ANOTHER” or “NEITHER” in string.
Just for my records grep “WORD\|ANOTHER\|NEITHER” string searches for either “WORD” or “ANOTHER” or “NEITHER” in string.
If you want to search for a pattern at the end of a line, you can use tail -f logfile | grep -v “0$” breaking down...