Loading ...
Sorry, an error occurred while loading the content.

Re: [nslu2-linux] Shell script - insert newline into string

Expand Messages
  • Tony Wilson
    Thanks for your help everyone! The problem was that I was doing: echo ${string} and I should have done: echo ${string} So, in my actual script: message=`echo
    Message 1 of 8 , Jun 15, 2009
    • 0 Attachment
      Thanks for your help everyone!

      The problem was that I was doing:

      echo ${string}

      and I should have done:

      echo "${string}"

      So, in my actual script:

      message=`echo -e "${subject}\n${from}\n${to}\n\n${content}"`

      echo "$message" | msmtp ${to}


      Cheers
      Tony
    Your message has been successfully submitted and would be delivered to recipients shortly.