title: sed -a command not working
body: <p>I tried executing sed command in my script to insert a text above another line, whenever I come across my search pattern. I tried the 'a' command to insert the text but I couldn't get it to work.</p>
  
  <pre><code>sed '/Splitter/a \ "help" '  fileList.out
  </code></pre>
  
  <p>sed: 1: "/Splitter/a \ "help" ": extra characters after \ at the end of a command</p>
  
  <pre><code>machine-1:Splitter machine-1$ sed '/Splitter  /"help" /a \ '  fileList.out 
  </code></pre>
  
  <p>sed: 1: "/Splitter  /"help" /a \ ": invalid command code "</p>
  
  <pre><code>machine-1:Splitter machine-1$ sed '/Splitter  /"help" a \ '  fileList.out 
  </code></pre>
  
  <p>sed: 1: "/Splitter  /"help" a \ ": invalid command code "</p>
  
  <pre><code>machine-1:Splitter machine-1$ sed '/Splitter/"help"/a \ '  fileList.out 
  </code></pre>
  
  <p>sed: 1: "/Splitter/"help"/a \ ": invalid command code "</p>
  
  <pre><code>machine-1:Splitter machine-1$ sed '/Splitter/help/a \ '  fileList.out 
  </code></pre>
  
  <p>sed: 1: "/Splitter/help/a \ ": extra characters at the end of h command</p>
  
  <pre><code>machine-1:Splitter machine-1$ sed '/Splitter/a \ '  fileList.out 
  </code></pre>
  
  <p>//File List</p>
  
  <p>./Splitter/View</p>
  
  <p>./Splitter/App</p>
  
  <p>./Splitter/Util</p>
  
  <p>./Splitter/main</p>
  
  <p>./Splitter/Check/SplitImage</p>
  
  <p>./SplitterTests/SplitterTests</p>
  
  <p>./Splitter/SplitterITests</p>
  
  <pre><code> machine-1:Splitter machine-1$ sed '/Splitter/a \ '  fileList.out 
  </code></pre>