title: SED - Search two pattern in a line and insert few word at the end of the line if pattern match is found
body: <p>I have a file  and i want to search two pttern in the same line  and if found one word should be inserted at the end of the line. want to do in a sed .</p>
  
  <p>Example</p>
  
  <p>I have a file contents like below , want to search unix and NotOK </p>
  
  <pre><code>abc unix windows DBa NotOK 
  abc unix windows DBa OK
  abc oracle sybase java OK
  </code></pre>
  
  <p>output should be like (Match abc and NotOK and if found , insert unix at the end of the line)</p>
  
  <pre><code>abc unix windows DBa NotOK "unix"
  abc unix windows DBa OK
  abc oracle sybase java OK
  </code></pre>