Sed command : how to replace if exists else just insert?
Asked 2012-10-22T14:53:53.207
25
I need to edit several lines in a file such that
if a line begins with (av or avpgw) then replace these with new text,
else just insert the new text in beginning.