Remove a line from a CSV powershell -


I currently have the following CSV

  These, what, many, columns - - -, ---, -------, ------- "and", "here", "is", "data", "and", "something", "more", " Data "  

When I want to change the process, which probably creates a CSV to remove the line of the dash which is not possible.

The line of the dash is always the second line, can I use parcels to remove the second line of data?

Bonus question, I want to add an empty line below the paragraph text. I'm guessing that I will be able to use add-content CMDlet, but I'm not sure how.

This command should work:

  gc file.txt | ? {$ _- nautical '* ---- *'} |    

This essentially does the following:

  1. Recover the contents of file.txt Do not use filters ( where-object ) for lines like--
  2. file2.txt

Comments