- 帖子
- 1023
- 积分
- 3120
- 技术
- 230
- 捐助
- 160
- 注册时间
- 2010-12-22
|
[原创] Findstr 不能搜索 UTF-8 编码文件怎么办?用 grep
本帖最后由 tmplinshi 于 2014-7-9 01:00 编辑
示例:列出当前目录及子目录包含“测试文字”的文件名复制代码 参数解释:
-r, --recursive equivalent to --directories=recurse.
-L, --files-without-match only print FILE names containing no match
-l, --files-with-matches only print FILE names containing matches
-r 是递归子目录
-l 是只显示匹配文件名,不显示“测试文字”所在行。
下载 GNU_grep2.4.2.7z |
-
1
评分人数
-
|