Skip to content

Commit 0045231

Browse files
Update grep.md (#327)
1 parent c9701bc commit 0045231

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

command/grep.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ line.
119119
grep -c "text" file_name
120120
```
121121

122+
搜索命令行历史记录中 输入过 `git` 命令的记录:
123+
124+
```shell
125+
history | grep git
126+
```
127+
122128
输出包含匹配字符串的行数 **-n** 选项:
123129

124130
```shell

0 commit comments

Comments
 (0)