title: How do you write over an echoed line?
body: <p>I'm trying to change the text of an echoed line in Terminal and \r works for me, but not when I put it in a .sh file. I want to run an .sh file to change an echoed line at 1 second intervals (don't ask why). When I do </p>
  
  <pre><code>echo -ne 'hello\r'
  sleep 1
  echo -ne 'bye\r'
  </code></pre>
  
  <p>it outputs with</p>
  
  <pre><code>-ne hello
  -ne bye
  </code></pre>
  
  <p>how do I acheive my goal?</p>