title: Passing link parameters via sed
body: <p>I'm trying to insert an image link into a file for a wiki on a remote server.</p>
  
  <pre><code>ssh root@10.10.10.1 "sed -i -e '1i'[^http://10.10.10.2/image.jpg^]'\'" /var/www/wiki/page
  </code></pre>
  
  <p>Works but I need to add the resize parameter after the file name but it doesn't work, how do I account for the spaces?</p>
  
  <pre><code>ssh root@10.10.10.1 "sed -i -e '1i'[^http://10.10.10.2/image.jpg height480 width=640^]'\'" /var/www/wiki/page
  sed: can't read height480: No such file or directory
  sed: can't read width=640^]\: No such file or directory
  </code></pre>