gpt4 book ai didi

regex - 如何 : Searching for a string in a file from the Windows command line?

转载 作者:可可西里 更新时间:2023-11-01 11:09:23 25 4
gpt4 key购买 nike

有没有办法在目录及其子目录的文件中搜索字符串?字符串比较独特。我想返回字符串的名称,并希望返回字符串在文件中所在的行。 Windows 中是否内置了用于执行此操作的任何内容?

最佳答案

您正在寻找内置的 findstr command .

/S 选项执行递归搜索。

关于regex - 如何 : Searching for a string in a file from the Windows command line?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7707924/

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