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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -