grep for 2 string with an "AND" operator

How can you grep for 2 string with an "AND" operator? I know you can always pipe your first grep through another grep but I was hoping there is a way to do that with an "AND" operator.

Hi,
you can use this way with egrep

egrep "word1.*word2" file

thanks,
venkat

awk does it with && (boolean and)

awk '/pattern1/ && /pattern2/' filename

Hi.

See also glark:

Some examples can be seen here with a search for glark, including an example at grep command with AND condition , post #4.

Best wishes ... cheers, drl