title: How to remove the literal string "\n" (not newlines) from a variable in bash?
body: <p>I'm pulling some data from a database and one of the strings I'm getting back is in one line and contains multiple instances of the string <code>\n</code>. These are not newline characters; they are literally the string <code>\n</code>, i.e. backslash+en, or hex 5C 6E.</p>
  <p>I've tried using sed and tr to remove them however they don't seem recognize the string and don't effect the variable at all. This has been a difficult problem to search for on google as all the results I get back are about how to remove newline characters from strings which is not what I need.</p>
  <p>How can I remove these strings from my variable in bash?</p>
  <p>Example data:</p>
  <p><code>\n\nCreate a URL where the client can point their web browser to.  This URL should test the following IP addresses and ports for connectivity.</code></p>
  <p>Example failed command:</p>
  <pre><code>echo &quot;$someString&quot; | tr '\\n' ''
  </code></pre>
  <p>Operating system: Solaris 10</p>
  <p><a href="https://stackoverflow.com/questions/36974182/remove-n-from-a-string-but-leave-the-actual-linebreaks">Possible Duplicate</a> - Except this is in python</p>