title: AIX sed: Not a recognized flag: i
body: <p>How can I fix this on AIX?</p>
  
  <pre><code>rm -rf $TMP;
  cat $ATTACHMENT|uuencode -m $FILENAME&gt;$TMP;
  sed -i -e '1,1d' -e '$d' $TMP;
  DATA=`cat $TMP`
  rm -rf $TMP;
  </code></pre>