Search Results

Search: Posts Made By: matcam79
1,217
Posted By hanson44
You can make grep -v work with multiple strings....
You can make grep -v work with multiple strings. For example:
$ cat patterns.txt
xxx
yyy

$ cat input.txt
jjj
ggg
xxx
yyy

$ grep -v -f patterns.txt input.txt
jjj
ggg
Make your pattern...
1,217
Posted By hanson44
Great. Yes, the -f option is pretty basic, so I'm...
Great. Yes, the -f option is pretty basic, so I'm glad you found a grep that supports it.
1,217
Posted By PikK45
in that case egrep should help. egrep -v...
in that case egrep should help.

egrep -v "sent to primary BE|CC-Request-Type 3 received in state Idle|Unknown session-id. Origin-Host" /var/adm/messages* | wc -l
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy