Ravi Sir's Cards › AWS
grep two words at once?
This interview card answers: grep two words at once? Basic grep treats | as text. Use -E for alternation. ERROR or FATAL.
Read card text
What this card says
What it is
Basic grep treats | as text.
Why it matters
Use -E for alternation.
How / example
ERROR or FATAL.
grep -E 'ERROR|FATAL' app.log