The command that I have prints out two of the lines whenever FW_6.0.0 is found, below is the code:
grep -oP 'FW_6.0.0, (.*)$' file
Below is the output, both has the same value of FW_6.0.0
FW_6.0.0, SUCCESS
FW_6.0.0, OK
I would like to match two words, that is FW_6.0.0 and SUCCESS that can be found on the same line so that it prints this out:
FW_6.0.0, SUCCESS
and eliminates FW_6.0.0, OK