Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Painful CSV output

$
0
0

Hi 

I have a program that exports a database to a csv file, this is a custom database engine, and the access to the data is via a web portal. On the web portal there is an export to csv function however when the data is exported there is many columns with the same header name making a standard import-csv impossible. I understand I could do a -header option however I would rather do the following. 

I was looking for a quick way to analyse the headers and where there was multiple headers of the same name I want to rename the header with a number suffix 1 2 3 ...

Is there an easy way to do this?

Thanks

Brent


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images