title: How can I replace newlines using PowerShell?
body: <p>Given <em>test.txt</em> containing:</p>
  
  <pre><code>test
  message
  </code></pre>
  
  <p>I want to end up with:</p>
  
  <pre><code>testing
  a message
  </code></pre>
  
  <p>I think the following should work, but it doesn't:</p>
  
  <pre><code>Get-Content test.txt |% {$_-replace "t`r`n", "ting`r`na "}
  </code></pre>
  
  <p>How can I do a find and replace where what I'm finding contains CRLF?</p>