View Single Post
Old 07-12-2007   #2 (permalink)
Kiron


 
 

Re: parsing csv files with fields that may contain commas

You can use the Import-Csv Cmdlet to assign the contents of the csv file to
a variable, then you can retrieve the fields as properties of the variable.

$data = import-csv data.csv
$data | select-onject field1
$data | select-object field1 | format-table -hide
$data | foreach-object {$_.field1}--
Kiron

My System SpecsSystem Spec