GREP command to search multiple strings

[davsingh@noisecover-dr Scripts]$ set | grep -e "answer" -e "lastname"
answer=ind
lastname=singh

For not equal to

[davsingh@noisecover-dr Scripts]$ seq 10 | grep -v -e "1" -e "5"
2
3
4
6
7
8
9

Comments

Popular posts from this blog

How to delete SEA in VIOS

Webmin configuration for LDAP

Sample questions and answers for AWS Associate Solutions Architect Certification ---> AWS exam dumps