FG
💻 Software

How to use grep to search for multiple options

Fresh5 days ago
Mar 15, 202629578 views
Confidence Score0%
0%

Problem

How can I use grep to search for line with either 'res' or 'rep'? I tried and but neither worked.

Error Output

grep -e res|rep

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to use grep to search for multiple options

Low Risk

You can also use option with , so there's no need to escape , for example: Or, you can use , which is the same thing as :

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment