retrieve only first line of data in csv This topic contains 2 replies, has 2 voices, and was last updated by David Schmidtberger 5 months, 2 weeks ago. Author Posts August 8, 2016 at 1:35 pm #49555 David SchmidtbergerParticipant 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 #49559 Don JonesKeymaster Import-CSV whatever.csv | Select -First 1 August 8, 2016 at 1:45 pm #49561 David SchmidtbergerParticipant wow, you rock Don, i'd seen it used in get-content, for some reason didn't even think to try with import-csv Author Posts You must be logged in to reply to this topic.