Merging hashtables in PowerShell: how?

前端 未结 12 2002
猫巷女王i
猫巷女王i 2021-01-07 18:26

I am trying to merge two hashtables, overwriting key-value pairs in the first if the same key exists in the second.

To do this I wrote this function which first remo

12条回答
  •  情深已故
    2021-01-07 19:05

    Here is the one that does deep merge and supports ordered hashtables.

    https://github.com/majkinetor/posh/blob/master/MM_HashTables/Merge-Hashtables.ps1

提交回复
热议问题