Reputation: 6986
I recently asked a question on how to join
the result of ls
which I tried to use for the result returned by Get-ChildItem
but to no luck.
The command I am trying to join
the result of (by let's say -
) is:
Get-ChildItem -Path . -Filter bin -Recurse | where {$_.psiscontainer} | gci -Filter *test*.dll -Recurse | select {$_.FullName}
Any help is much appreciated.
Upvotes: 0
Views: 1355
Reputation: 22821
You need to expand the FullName
property so you can join strings instead of objects:
(Get-ChildItem -Path . -Filter bin -Recurse | where {$_.psiscontainer} | gci -Filter *test*.dll -Recurse | select -ExpandProperty FullName) -join ' - '
Upvotes: 3