【发布时间】:2015-08-28 23:45:31
【问题描述】:
在bash我写了echo prefix{t1,t2,t3}suffix
并得到了prefixt1suffix prefixt2suffix prefixt3suffix
PowerShell 中是否存在类似的内容? 我的意思是列表扩展。
【问题讨论】:
-
是否使用循环选项?
-
"t1","t2","t3" | % { "prefix" + $_ } -
也许你可以使用'splatting'stackoverflow.com/questions/448911/…
-
@arco444:不,循环不是解决方案
标签: powershell