From 378c00b06ccbd959ed9ea2065463694dbe363d1c Mon Sep 17 00:00:00 2001 From: Starccy <452276725@qq.com> Date: Mon, 11 Mar 2019 10:12:28 +0800 Subject: [PATCH] findstr: add Chinese translation --- pages.zh/windows/findstr.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages.zh/windows/findstr.md diff --git a/pages.zh/windows/findstr.md b/pages.zh/windows/findstr.md new file mode 100644 index 0000000000..2e80033a1c --- /dev/null +++ b/pages.zh/windows/findstr.md @@ -0,0 +1,35 @@ +# findstr + +> 在一个或多个文件中查找指定的文本. + +- 在所有文件中查找以空格分隔的字符串: + +`findstr "{{查询语句 [查询语句] ..}}" *` + +- 以递归方式在所有文件中查找以空格分隔的字符串: + +`findstr /s "{{查询语句 [查询语句] ..}}" *` + +- 查找时不区分大小写: + +`findstr /i "{{查询语句}}" *"` + +- 使用正则表达式搜索: + +`findstr /r "{{正则表达式}}" *` + +- 在所有文本文件中查找文字字符串(包含空格): + +`findstr /c:"{{查询语句}}" *.txt` + +- 只查找完全匹配的行: + +`findstr /x "{{查询语句}}" *` + +- 显示匹配的行的行数: + +`findstr /n "{{查询语句}}" *` + +- 只显示匹配的文件名: + +`findstr /m "{{查询语句}}" *`