Concatenate String through Awk

I want to concatenate any particular field of the file with any String say SSB....but i am not able to do it...

I hv tried the following code....but its saying there is error in parsing it..
awk 'BEGIN { FS = "," ; OFS = "," ; } { for ( i = 1 ; i < 5 ; i++ ) {a=i;b="SSB"; print $1,$a$b,$3 } }' cid.del

Thanks in advance

$ is not needed to get value of variable defined in awk

awk 'BEGIN { FS = "," ; OFS = "," ; } { for ( i = 1 ; i < 5 ; i++ ) {a=i;b="SSB"; print $1,$a b,$3 } }' cid.del

you declared 'a' and 'b', so just use 'a' and 'b', no need for dollar sign ( $a $b is not correct)

Yeah..it worked...
Thanks 2 both of you for quick reply. :slight_smile: