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/aaa=bbb/aaa=xxx/g"
Now I have a file with a few lines as follows:
aaa=bbb aaa=ccc aaa=ddd aaa=[something else]
How can I replace all this lines aaa=[something]
with aaa=xxx
using sed?
[something else]
the literal text, or is that just a placeholder? What is the possible format of the thing after the equals sign? – ean5533