...
Using OR operator in grep search. Note you need a somewhat current version of grep (you are out of luck with Solaris use egrep for Solaris),
Code Block | ||
---|---|---|
| ||
grep 'apples\|oranges' fruits.txt green apples red oranges red apples |
...
...
Using OR operator in grep search. Note you need a somewhat current version of grep (you are out of luck with Solaris use egrep for Solaris),
Code Block | ||
---|---|---|
| ||
grep 'apples\|oranges' fruits.txt green apples red oranges red apples |
...