Given:
- csv integers 100,200
- PowerShell 5.1
I'd like to take the csv integers and make it look like the following:
$parmIn = "100,200"
desired output: "(100),(200)"
The way it is currently done:
$parmIn = "100,200"
$x = "(" + "$parmIn".replace(",", "),(") + ")"
What's another way to write this more concisely in PowerShell?
I was thinking something with array subexpressions or something.