How to replace a whole line with sed?

Try this:

sed "s/aaa=.*/aaa=xxx/g"

Leave a Comment