Not printing empty lines if no matches on the subline