Link to home
Start Free TrialLog in
Avatar of phasevar
phasevar

asked on

Grep two words (logical OR)

How can I tell grep to return lines with either one of two words?

grep "this|that" file

Is that correct?
ASKER CERTIFIED SOLUTION
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of phasevar
phasevar

ASKER

Thank you!