title: Adding a new line before a pattern
body: <p>I need to add some text before a pattern.</p>
  
  <p>I know how can I add after the pattern.</p>
  
  <pre><code>sed  -i '/pattern/aNew Text'     input_file
  </code></pre>
  
  <p>But how to do it for adding the 'New Text' before the pattern.</p>