In a CSV to access a two word header with powershell -
consider code:
$header = '#', 'status', 'affected version', 'priority', 'subject', 'description' $csv = import-csv -path $path -delimiter ' ' -header $header select-object -skip 1 | foreach-object { $_.description = "something" }
as can see adding columns csv file , adding values them. question is: how should access 'affected version' column? don't want add '_' between words. space must remain. thanks!!
like this:
... | foreach-object { $_.'affected version' = "something" }
Comments
Post a Comment