Y,T,,H05,6,6,0,0 -> TH05_6
D,5,BT,B -> BT_KIOSK
P,KQC222 -> KQC222
G,B,2 -> BRANI_GATE_2
fileA
TPM658 Y,T,,H05,6,6,0,0
TPM110 D,5,BT,B
TPM136 P,KQC222
TPM180 P,BQC913
TPM575 Y,B,,T05,14,14,0,0
IPM760 G,B,2
TPM011
I need to use second column
$1,$2,$3,$4.....
if first char =='Y' then obtain $2,$4,'',$6
else if first char =='D' then obtain $3'KIOSK'
else if first char =='P' then obtain $2
else if first char =='G' then BRANI_GATE_2
else null
getting the result:
TPM658 TH05_6
TPM136 KQC222
TPM180 BQC913
TPM575 BT05_14
IPM760 BRANI_GATE_2
TPM011
Hi guys, need an approach guide to the problem. I dont know how to start :(. Thanks.