How do you convert a file like this:
ghosts: [[8, 16]]
pacman: [3, 15]
ghosts: [[4, 26]]
pacman: [4,15]
to a file like this:
ghosts: [[8, 16]], pacman: [3, 15]
ghosts: [[4, 26]], pacman: [4,15]
with the sed command?
I tried sed -e 's/\npac/, pac/g' input_file
and got no change as a result.