【发布时间】:2014-05-02 02:01:07
【问题描述】:
我正在尝试使用 powershell 将某些列加入到逗号分隔的数组中。
$userlist = Import-Csv C:\POS.csv | Where-Object {($_.StoreId -eq "4801") -and ($_.TouchPointID -eq "10")}
$output123 = -join "$($userlist.Printer) $($userlist.CashDrawer)"
echo $output123
这给了我
Printer POS IBM4610-TF6 Cash Drawer POS IBM
但我想要它
Printer POS IBM4610-TF6,Cash Drawer POS IBM
【问题讨论】:
标签: powershell csv join printing import