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
Like this:
sed 's/aaa=.*/aaa=xxx/'
If you want to guarantee that the aaa= is at the start of the line, make it:
aaa=
sed 's/^aaa=.*/aaa=xxx/'