What I have?
$array1 = "string01", "string02", "string03"
$array2 = "another01", "antoher02", "anoter03"
What I wish?
output-file:
- Example01:
string01,another01
string02,another02
string03,another03
How can I cocatenate two arrays in one and do that line by line? It's because I need to combine value 01 from $array01 with value01 from $array02, separating them with comma.
I have tried to use foreach, but this one combine every value from $array01 with every value from $array02, for example:
- Example02:
string01,another01
string01,another02
string01,another03
string02,another01
string02,another02
string02,another03
string03,another01
string03,another02
string03,another03
But I need the output likes the Example01.
I am using powershell! Thanks
I have tried to use foreach, but this one combine every value from $array01 with every value from $array02, but no success doing that!