gpt4 book ai didi

powershell - 在 PowerShell 中过滤多个通配符的有效方法

转载 作者:行者123 更新时间:2023-12-05 00:05:41 25 4
gpt4 key购买 nike

我希望能够做到

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

但不支持该语法。

最佳答案

使用 -Include它接受一个数组,而不是 -Filter .请注意,您必须使用 *作为使用 -Include 时的路径:

Get-ChildItem * -Include *.ps1,*.cs,*.sql

关于powershell - 在 PowerShell 中过滤多个通配符的有效方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4292574/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com