Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 549 Bytes

level-44.md

File metadata and controls

18 lines (12 loc) · 549 Bytes

第44关 grep

Your project's deadline approaches, you should evaluate how many TODOs are left in your code.

项目的交付时间快到了,你要评估一下代码里还遗留了多少待办事项。

和 Linux 的 grep 命令类似,Git 也提供了一个用于搜索文本的 grep 命令:

$ git grep keyword
$ git grep keyword file-name

第1条命令在当前项目下查找指定的关键词;第2条命令在指定的文件中查找关键词。

第44关过关画面如下:

第44关 grep