title: UNIX format files with Powershell
body: <p>How do you create a unix file format in Powershell? I am using the following to create a file, but it always creates it in the windows format.</p>
  
  <pre><code>"hello world" | out-file -filepath test.txt -append
  </code></pre>
  
  <p>As I understand, the new line characters CRLF make it to be a Windows format file whereas the unix format needs only a LF at the end of the line. I tried replacing the CRLF with the following, but it didn't work</p>
  
  <pre><code>"hello world" | %{ $_.Replace("`r`n","`n") } | out-file -filepath test.txt -append
  </code></pre>