I have the contents of file like:
data {
x = "name",
y = "job"
z = "role"
}
I want to add = in front of the curly bracket when it is missing, otherwise ignore it
Output should be :
data = {
x = "name",
y = "job"
z = "role"
}
I tried this but doesn't work.
sed -r -ie 's|data \{ | data \= \{|g' abc.txt
Can anybody please tell what am I doing wrong?
Thanks