grep: grep for two substrings?
I'm trying to get grep to return true if it finds string xyz or string abc. I know you can do it with individual chars, but can this be accomplished with substrings? If so, how?
if cat /file | grep "xyz or abc"; then
echo "string contains substring xyz or substring abc"
Last edited by eur0dad; 08-17-2006 at 03:47 PM.