Multiple grep in one?

Solved
mortelrdv -  
 mortelrdv -
Hello,

To find one or multiple lines containing the info I want, I do:
grep "info1" filename | grep "info2" | grep "info3" | fgrep "info4"

I was wondering if there is a way like:
grep "info1" "info2" "info3" "info4" filename

Thank you

9 answers

jipicy Posted messages 40842 Registration date   Status Moderator Last intervention   4 898
 
Hello,

egrep "info1|info2|info3|info4" file_name

--
$ man woman
There is no manual page for woman.

GNU/Linux: Gnu/Linux is Not Ubuntu!
14