Suppose I have a file with lines
aaa=bbb
Now I would like to replace them with:
aaa=xxx
I can do that as follows:
sed \"s
sed -i.bak 's/\(aaa=\).*/\1"xxx"/g' your_file