I currently have a CSV file that is generated every week, in which I use it to tell what servers have certain software installed. I want to write a script to automate this process, but I'm getting stuck when trying to split the file.
My file has 8 lines of documentation, and the real data doesn't start until line 9. Next, each row of data has 15 columns that I want separated into $temp[0], ..., $temp[14]. The total file is around 3,800+ lines long. My issue is, however, that my data has commas in it which are used to format dates, cells with multiple items (ie. "CE, _Linux, Windows"), etc. So what I'm running into is that I can't use $example.Split(","), as it separates each item by comma, when I really want it separated by column of my CSV file.
Any idea on how to go about this?
-delimiterparameter also (in which you can specify a comma or any other delimiter). Just likeImport-Csv -path \\YourCsvFilePathHere\CsvFile.csv -delimiter ,- Vivek Kumar Singh