Add a header to a .csv column that already has data
I have a .csv file that has data in a column, I need that column to have a header. I can not figure out how to get a header in the column开发者_StackOverflow中文版.
This should work:
import-csv test.csv -Header "Name" | export-csv test.csv -NoTypeInformation
精彩评论