Question:
I’d like to be able to do
1 2 |
gci -filter *.ps1,*.cs,*.sql |
but that syntax isn’t supported.
Answer:
Use -Include
which takes an array, instead of -Filter
. Note that you have to use *
as the path when using -Include
:
1 2 |
Get-ChildItem * -Include *.ps1,*.cs,*.sql |