Skip to content

Commit 92f6370

Browse files
LaudOakjaywcjlove
authored andcommitted
add -m option (jaywcjlove#78)
1 parent 18eefff commit 92f6370

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎command/grep.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ grep
3737
-x --line-regexp # 只显示全列符合的列。
3838
-y # 此参数效果跟“-i”相同。
3939
-o # 只输出文件中匹配到的部分。
40+
-m <num> --max-count=<num> # 找到num行结果后停止查找,用来限制匹配行数
4041
```
4142

4243
### 规则表达式

0 commit comments

Comments
 (0)