tip n trik part 2 (multiple grep)

using grep to catch multiple string

example :

find more than one package list

rpm -qa | grep -i -e "ruby" -e "python"
or
find more than one string at file

egrep -i "str1|str2" /your/file
reference

Comments