How can I use grep to search for line with either 'res' or 'rep'?
i try "grep -e res|rep" or gre -e "rep|rep" but that does not work.
|
feedback
|
|
You can also use -E option with grep, so there's no need to escape "|", for example:
Or, you can use egrep, which is the same thing as grep -E:
| ||||
|
feedback
|
|
You need to escape the pipe character:
or use multiple
| |||
|
feedback
|
| |||||||||
feedback
|