title: In BASH, How do i replace \r from a variable that exist in a file written using HTML <textarea></textarea>
body: <p>How do i replace the \r?</p>
  
  <pre><code>#!/bin/bash
  ...
  
  # setup
  if [[ $i =~ $screen ]]; then
  
      ORIGINAL=${BASH_REMATCH[1]}          # original value is: 3DROTATE\r
      AFTER   =${ORIGINAL/\\r/}            # does not replace \r
      myThirdPartyApplication -o $replvar  # FAILS because of \r
  
  fi
  </code></pre>