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

Popular posts from this blog

authentication failure using SSH pam_unix(sshd:auth): authentication failure;

Howto configure SPLUNK Universal Forwarder

openvpn howto make OCSP server using OpenSSL [Part2]