I have multiple files that contain string like this:
result = [
{
key1 = value1
key2 = value2
key3 = {
subkey3 = subvalue3
}
},
{
key3 = value3
key4 = value4
}
]
I want to merge those file become 1 file. so here what I did.
get all value inside result using
sed -i '/result\|\]\|\[/d' fileI append the output to a file but inside
result = []result = [ ]
but I don't know how, and I need to make sure there is comma , separated between each output from file.