Regex for “or” in grep
How can I grep for lines with either 'disable' or 'enable' in my file?
I tried $ grep "disable|enable" fail.log
but that shows up nothing.
You need the
Try "grep "disable\|enable" fail.log
The backslash turns the | into the "or" metacharacter, otherwise you are grepping for the literal 'disable|enable"