Archive for tag: grep

Using grep with Multiple Strings at Once

17 May, 2010 (23:30) | Linux, Miscellaneous, [English Posts] | By: Wolfgang

The easiest way to match multiple strings with grep is to use extended regular expressions. To do so call grep with the -E option or use the command alias egrep.

The following command will match lines with at least one occurrence of one or more of the three words ruby, rails or rake in it.
grep ...