👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.
On Linux, how to grep for two patterns?
On Linux, you can grep for several patterns with the following syntaxes:
grep -e 'pattern1' -e 'pattern2' file.txt
or:
grep 'pattern1\|pattern2\|pattern3' file.txt