代码之家  ›  专栏  ›  技术社区  ›  Scott Weinstein

筛选PowerShell中多个通配符的有效方法

  •  3
  • Scott Weinstein  · 技术社区  · 14 年前

    我想能做到

    gci -filter *.ps1,*.cs,*.sql
    

    但不支持这种语法。

    2 回复  |  直到 7 年前
        1
  •  6
  •   Julien Lebosquain    14 年前

    -Include -Filter *

    Get-ChildItem * -Include *.ps1,*.cs,*.sql
    
        2
  •  0
  •   noam    12 年前

    gci -file "*.ps1","*.txt"