gpt4 book ai didi

Windows 'findstr' 命令 : Exclude results containing particular string

转载 作者:可可西里 更新时间:2023-11-01 12:44:59 24 4
gpt4 key购买 nike

对于命令 findstr str1 *.* 我想添加一些内容来排除包含字符串 str2 的结果。

在 Linux 中,这样做的方法是添加 | grep -v str2 (当然是 grep str1 *)。 Windows 中是否有与 -v 等效的标志?

最佳答案

Is there an equivalent flag to -v in Windows?

-v 等价于/V

C:\Users\Todd>findstr /?
Searches for strings in files.

...

/V Prints only lines that do not contain a match.

关于Windows 'findstr' 命令 : Exclude results containing particular string,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23511172/

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