Article 5HZRF Appending a list in bash

Appending a list in bash

by
PauleeDee
from LinuxQuestions.org on (#5HZRF)
I have a list in bash that looks like the following.

Quote:
{
name:
address:
phone:
}
{
name:
address:
phone:
}
{
name:
address:
phone:
}
I need to append a comma , after every } except the very last instance as shown below

Quote:
{
name:
address:
phone:
},
{
name:
address:
phone:
},
{
name:
address:
phone:
}
I have been playing with IFS but have not been able to successfully do this or even get close, can anyone advise or assist?latest?d=yIl2AUoC8zA latest?i=_TDkLeNTt94:4L7KlwNnZNM:F7zBnMy latest?i=_TDkLeNTt94:4L7KlwNnZNM:V_sGLiP latest?d=qj6IDK7rITs latest?i=_TDkLeNTt94:4L7KlwNnZNM:gIN9vFw_TDkLeNTt94
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments