且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在多个文件中搜索字符串并在Powershell中返回文件名?

更新时间:2022-04-17 08:51:47

这应该给出包含您的模式的文件的位置:

This should give the location of the files that contain your pattern:

Get-ChildItem -Recurse | Select-String "dummy" -List | Select Path