I am (unsuccessfully) trying to change my log format file. I have input text which include:
VERSION = [1.1, 2.2, 3.3, 4.4]
Cuz my client use split style with " delimiter so I want to use sed command to convert input into:
VERSION = [ "1.1", "2.2", "3.3", "4.4" ]
I have tried this but it not works:
sed 's/^\(VERSION = \[\).*\(\]$\)/\1\", \"\2/'
Can anyone help me, thanks in advance!