title: Replacing new line with space with powershell
body: <p>Hi so I've been looking into this for a while and nothing I've tried has worked. Forgive me for asking this again, but I cannot replace a new line with a space in powershell</p>
  
  <pre><code>$path = "$root\$filename"
  Get-Content $path | % $_.Replace "`r`n"," " | Set-Content "$root\bob.txt" -Force
  </code></pre>
  
  <p>This is one of the many things I've tried just looking around on this site. </p>
  
  <p>I'm using powershell v3 </p>