#!/bin/bash
s="345-103832 OI.S.15.0FKOGO   
345-103832 OX.S.5.0FKOGO   
345-103832 QX.S.3.0FKOGO  
345-103832 Qa.S.21.0FKOGO  
345-114643 IX.S.13.0FKOGY"
awk '$2 !~ /^.?[OI]/' <<< "$s"

# need to print all lines that column 2 does not start with "O", with "I" or have an "O or "I" as 
#part of the first two letters.