title: Overwriting CSV in PowerShell
body: <p>I have a CSV document that is of the following structure </p>
  
  <p>Headers</p>
  
  <pre><code>Path,Publish,Hashlist,Package
  </code></pre>
  
  <p>Content Entries</p>
  
  <pre><code>C:\packages\word.docx, 10:14:17 on 17-08-2011, C:\packages\word.hash, C:\packages\word.zip
  </code></pre>
  
  <p>Now, I will have multiple lines of entries, but I only want to maintain one entry per path at a given time.  So when I add a new entry for C:\packages\word.docx, I want to find and delete the line above.  I can append the .CSV no problem in PowerShell, but am unsure how to identify the line based on the filepath, and remove/overwrite it.</p>