I have a CSV document that is of the following structure
Headers
Path,Publish,Hashlist,Package
Content Entries
C:\packages\word.docx, 10:14:17 on 17-08-2011, C:\packages\word.hash, C:\packages\word.zip
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.
Something like this maybe:
The update part maybe tricky based on what you are doing. So it will be helpful if you give some code on what you are doing.