title: sed doesn't work from within bash script
body: <p>I've searched for hours looking for the answer to this question which seems frustratingly simple...</p>
  
  <p>I have a bash script which I've simplified to find the line that's stopping it from working and am left with:</p>
  
  <pre><code>#!/bin/bash
  #
  sed -i -e "s/&lt;link&gt;/\n/g" /usb/lenny/rss/tmp/rss.tmp
  </code></pre>
  
  <p>If I run this script, nothing happens to the file rss.tmp - but if I call this exact same sed command from the terminal, it makes all the replacements as expected.  </p>
  
  <p>Anyone have any idea what I'm doing wrong here?</p>