Hello,
I can't believe I don't remember how to do this, but I need to determine if 2 words exist on any line in a text file, with an unknown number of characters before, between or after the 2 words on the line. Such as
Words to look for are cat and dog
The cat looks at the dog and
Cat is not dog
should both return $status == 0
I need to do this in a csh script.
Thanks!
I can't believe I don't remember how to do this, but I need to determine if 2 words exist on any line in a text file, with an unknown number of characters before, between or after the 2 words on the line. Such as
Words to look for are cat and dog
The cat looks at the dog and
Cat is not dog
should both return $status == 0
I need to do this in a csh script.
Thanks!