How can we use minimatch in powershell?

308 views Asked by At

I would like to be able to get all the files using a pattern like c:\files\**\bla\**\*.ts, for example.

Possible options, sorted in the order of preference, are:

  1. Powershell supports it already. (How???)
  2. There is a powershell module implementing it.
  3. There is a .Net library that does it. glob and minimatch look promising.
  4. There is a windows command line tool that does it.

I am asking this question because I prefer the first 2 options, but so far (10 mins) I came up empty.

0

There are 0 answers