title: Remove new line from file
body: <p>I'm trying to remove lines matching a detail provided by me with the below command. When a new file <code>output.txt</code> is created it comes with a new line which I don't want to come. Is there a way to remove it in the same command which I pasted below.</p>
  
  <p><code>a.txt</code> has the below content:</p>
  
  <pre>
  12345   asd 12-22-2009
  23432   vfv 03-21-2019
  23432   abcd    03-21-2019
  38372   kcdsklfm    08-17-2011
  </pre>
  
  <pre><code>Get-Content C:\test\a.txt |
      Select-String -Pattern '23432' -NotMatch |
      Out-File C:\test\output.txt
  </code></pre>
  
  <p><code>output.txt</code> (expected):</p>
  
  <pre>
  12345   asd 12-22-2009
  38372   kcdsklfm    08-17-2011
  </pre>
  
  <p><code>output.txt</code> (actual):</p>
  
  <pre>
  
  12345   asd 12-22-2009
  38372   kcdsklfm    08-17-2011
  </pre>
  
  <p><a href="https://i.stack.imgur.com/PClK5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PClK5.png" alt="output file screenshot"></a></p>