Try something like this:
grep 'text1' afile | grep -E 'text2|text3' > results
If your grep version don't like the -E option, try this:
grep 'text1' afile | egrep 'text2|text3' > results
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884