pwsh dir not working with wildcard when using -include

Viewed 32

Currently when using powershell on linux and test deleting some files

dir Desktop\* -include psmyfolder* ( This doesn't seem to work at all)

dir Desktop -include psmyfolder* -recurse (However this works)

I understand that the -filter parameter is better as it's native and more efficient. However I am trying to go through a tutorial and was under the impression that the wildcard for Desktop* should work as well.

0 Answers
Related