类型:【转载】
原文作者:【Michaelchan0】
日期:【2022-08-10 17:48:31】
原文地址:https://blog.csdn.net/qq_40473623/article/details/126269975

 

1、在当前目录下查找所有test.txt文件

dir /s/b test.txt


2、在当前目录test.txt文件中查找所有”hello”字符串所在的行

findstr /n “hello” test.txt


查找内容都可以正则匹配,类似Linux下的find和grep

发表评论