The title speaks for itself really. I only want to know if it exists, not where it is. Is there a one liner to achieve this?
grep for foo OR bar OR baz, stolen from ruby1line.txt.
$ ruby -pe 'next unless $_ =~ /(foo|bar|baz)/' < file.txt