How do, On Tue, 2007-03-13 at 15:42 +0000, Dan Track wrote: > Hi > > Could someone please tell me how I can grep for two or more different > words in one command instead of piping them through. > > e.g I don't want to do > > cat /tmp/file | grep -v cat | grep -v grey > > I'd like to run that from one grep command. #egrep 'cat|grey' /tmp/file works for me. > Many Thanks > Dan taharka Lexington, Kentucky U.S.A.