grep with AND operator from file

To make a grep on a file of two words that don't overlap you neet to use the OR operator as in the following example:

egrep ('word1'.*'word2')|('word2'.*'word1') FileName

This has been tested in ubuntu 12.04 but grep is a standard command so it's available in all the linux distributions like linux MInt, other Ubuntu versions, etc... and is also available in Apple systems as Snow Leopard, Lion etc...