$data = @(Import-Csv .partialFile.csv ) $row = $data[0] # how many columns do we have? $row | gm -membertype NoteProperty | Measure-Object # columns larger than 80 chars $row | gm -membertype NoteProperty | ? { ($row."$($_.Name)").Length -gt 80 }
Reference: http://stackoverflow.com/questions/8685034/error-importing-5-gig-file-into-table
Last Updated on October 26, 2015