Skip to content

Commit

Permalink
Update grep.md (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardowangyf authored Jan 13, 2022
1 parent c9701bc commit 0045231
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions command/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ line.
grep -c "text" file_name
```

搜索命令行历史记录中 输入过 `git` 命令的记录:

```shell
history | grep git
```

输出包含匹配字符串的行数 **-n** 选项:

```shell
Expand Down

0 comments on commit 0045231

Please sign in to comment.