Author Posts

August 8, 2016 at 1:35 pm

silly question i know, but can't seem to get anything to easily work.

I need to extract the first line of data from a csv file. the files will have many entries, but i only need the first line to calculate some other values for further processing.

August 8, 2016 at 1:38 pm

Import-CSV whatever.csv | Select -First 1

August 8, 2016 at 1:45 pm

wow, you rock Don, i'd seen it used in get-content, for some reason didn't even think to try with import-csv