I cannot figure out how to do a grep for multiple terms. I've tried to use egrep and i've tried tons of grep statements w/ no luck. It should be pretty simple, here's what I'm lookin to do...
+ 0.975287 0 2 cbr 1000 ------- 1000 0.0 1.0 128 249
- 0.975287 0 2 cbr 1000 ------- 1000 0.0 1.0 128 249
r 0.975384 2 0 cbr 1000 ------- 1000 1.1 0.1 120 248
+ 0.979559 1 2 cbr 1000 ------- 1000 1.1 0.1 121 250
h 0.985172 0 2 cbr 1000 ------- 1000 0.0 1.0 129 251
+ 0.986172 0 2 cbr 1000 ------- 1000 0.0 1.0 129 251
- 0.986172 0 2 cbr 1000 ------- 1000 0.0 1.0 129 251
+ 0.990884 1 2 cbr 1000 ------- 1000 1.1 0.1 122 252
h 0.996394 0 2 cbr 1000 ------- 1000 0.0 1.0 130 253
+ 0.997394 0 2 cbr 1000 ------- 1000 0.0 1.0 130 253
- 0.997394 0 2 cbr 1000 ------- 1000 0.0 1.0 130 253
+ 0.997516 1 2 cbr 1000 ------- 1000 1.1 0.1 123 254
r 0.999209 2 1 cbr 1000 ------- 1000 0.0 1.0 130 253
In output like that I only want to show lines that start w/ the "+" and contain "0 2" as the 3rd and 4th field. For example, the first line should be showed in the sample I posted. I would greatly appreciate you to help out this
Thanks in advance!