Search and replace (or add) using sed
Today, I was facing (once more) with the following need: I need to update a setting in a text file but if the variable is not yet present, I need to add it.
So, in short, I need to make a search and replace or insert new line.
Using sed
it's quite easy to automate the search & replace but how to append?