title: Replace whole line when match found with sed
body: <p>I need to replace the whole line with <code>sed</code> if it matches a pattern.
  For example if the line is 'one two six three four' and if 'six' is there, then the whole line should be replaced with 'fault'.</p>