Question: how to use grep in cygwin?
Answer: Use a basic regular expression (just grep ) and escape the | character in the regular expression. ... 
Use an extended regular expression with egrep or grep -E , as Julian already pointed out in his answer. ... 
If it is two different patterns that you want to match, you could also specify them separately in -e options: