Let's say I used Get-ChildItem and get
$list1
Name
----
test1
test2
I want an array of list2
test1.txt
test2.txt
I tried
$list2 = % {$list1.name + ".txt"}
But as for me list2 content is same as list1 ?
Let's say I used Get-ChildItem and get
$list1
Name
----
test1
test2
I want an array of list2
test1.txt
test2.txt
I tried
$list2 = % {$list1.name + ".txt"}
But as for me list2 content is same as list1 ?