BEGIN{FS="|";}{ x=index($0,"Act_TD_Softmax"); if ( (x>0) && ($6==" o ") ){ printf("%sAct_TD_Logistic | | \n",substr($0,1,x-1)); } else { printf("%s\n",$0); } }