I have a text formatted like following:
key [value]
key [value, value]
now I realized I forgot to put a comma between the key and the values array, which means I am trying to get this:
key, [value]
key, [value, value]
I thought, instead of regenerating the file which takes several hours, I could maybe easily do it with sed.
I tried cat small.txt | sed -n 's/{ \[}/{, \[}/g'
and some other variants (like without {} and without spaces, I get no error, but the file doesn't change