Bind every line from two variables in a third variable in powershell -


i got 2 variables, filled with:

$var1: dog cat bird  $var2: makes wau makes miau makes beep 

how can mix both of them like:

$var3 dog makes wau cat makes miau bird makes beep 

$var3 = $var1 + $var2 dosen't work

this rapid way (variables's lenght must equal):

$i = 0 ; $var3 = $var1 | % { "$_ $($var2[$i])"; $i++ } 

Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -