Appending a list in bash
by PauleeDee from LinuxQuestions.org on (#5HZRF)
I have a list in bash that looks like the following.
Quote:
I need to append a comma , after every } except the very last instance as shown below
Quote:
I have been playing with IFS but have not been able to successfully do this or even get close, can anyone advise or assist?


Quote:
{ name: address: phone: } { name: address: phone: } { name: address: phone: } |
Quote:
{ name: address: phone: }, { name: address: phone: }, { name: address: phone: } |