I have a file (content below)
name = [
"victor",
"linda",
"harris",
"sandy"
]
Now how to i add a command (shell using sed or awk) and i need below output
name = [
"NEW INPUT HERE",
"victor",
"linda",
"harris",
"sandy"
]
I have tried multiple ways but not able to achieve it. Few of them what i tried sed '2a'$'\n'' "NEW INPUT HERE", ' filename
I am able to get add it but not giving new line after my input