Multiple grep in one?
Solved
mortelrdv
-
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
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