title: Getting an error with sed expression
body: <p>I am using this command in a shell script</p>
  
  <pre><code>lnum=5
  str="Hello foo"
  filename="/path/fiename"   
  
   sed -i "$lnum i $str" $filename
  </code></pre>
  
  <p>Getting the following error</p>
  
  <pre><code>sed: -e expression #1, char 3: : doesn't want any addresses
  </code></pre>
  
  <p>I had used this command before for other script it worked fine, the only change i made this time is file-name has a path to the file, but I tried it with just giving file-name and not the path by getting into the path and executing the script but still it doesn't work</p>
  
  <p>I am unable  to resolve it can anybody help</p>