In this article let’s discuss about Bash print lines that match any of several words. Let’s go through the following methods without any delay.
# Basic syntax: grep 'word1\|word2\|word3' /path/to/file # This prints all lines that match word1, word2, OR, word3
Hope the above solution works.
Realted Posts : Docker remov all running containers