I have a bash script which stores some values in a variable and outputs each value on a separate line like this:
2288
87
183
30
16
I need the values to be in this format on one line so I can export to CSV:
2288, 87, 183, 30, 16
I have looked at some examples online of using sed or awk but couldn't find an example similar to mine.
Any help would be appreciated.
 
     
     
     
     
     
    