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
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
Post a Comment