Advertisement
Combreal

access-first-csv-column.ps1

Mar 17th, 2024 (edited)
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Access first column of a CSV without header
  2.  
  3. $data = Import-Csv .\mycsv.csv
  4. $data.($data[0].PSObject.Properties.Name[0])
Tags: powershell CSV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement