prefix suffix to each argument

Hi,

I have a variable, which contains comma separated values. Something like.

StringA="abc,def,ghi,jkl"

I want to apply prefix and suffix to each value in the string without using any loops.

Say if Prefix is Pre_ and Suffix is _Suf then I need to get

StringA="Pre_abc_Suf,Pre_def_Suf,Pre_ghi_Suf,Pre_jkl_Suf"

How can I achieve this without loops.

Hi,

commands:

IFS=,$IFS && read 1 2 3 4 <<< "abc,def,ghi,jkl"
string="pre_${1}_suf,pre_${2}_suf,pre_${3}_suf,pre_${4}_suf"

output echo $string:

pre_abc_suf,pre_def_suf,pre_ghi_suf,pre_jkl_suf

HTH Chris