I want to add () after the equal symbol as shown below.
actual variable in a file : vm_names=vm1 vm2 vm3
i want to change it to: vm_names=(vm1 vm2 vm3)
I tried the below command but its giving different output
sed -i 's/.*/(&)/' file_name
O/p: (vm_names=vm1 vm2 vm3)
question from:https://stackoverflow.com/questions/65920926/adding-brackets-after-paricular-string