How to add comma after every value in a array

view story

http://www.unix.com – Hi all Requirement: I need to generate a comma seperated file(.csv) I have one functions which returns me some values in a array. Now i want to add comma after every value that gets stored in the array. E.g: Code: arr[i]=$var1"," Expected: Code: arr[0]=abc, arr[1]=def, . . likewise thanks in advance Ganesh Moderator's Comments: Please use code tags next time for your code and data. (HowTos)