

0·
6 months agoIt’s marked solved, but since OP didn’t post the solution:
-e
uses basic regular expressions, where you need to escape the meta-characters ((|)
) with a backslash. Alternatively, use extended regex with -E
$ echo a | grep -E "(a|b)"
a
$ echo a | grep -e "\(a\|b\)"
a
$ echo a | grep -e "(a|b)"
$ echo a | grep -E "\(a\|b\)"
Here’s an Olympic sprinter powering a toaster. He generates 0.021kWh going flat out: https://youtu.be/S4O5voOCqAQ