Skip to content

Commit

Permalink
doc: update grep.md fix #455
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 27, 2022
1 parent 41bb108 commit db498ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/grep.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $ # 锚定行的结束 如:'grep$' 匹配所有以grep结尾的行。
* # 匹配零个或多个先前字符 如:'*grep'匹配所有一个或多个空格后紧跟grep的行。
.* # 一起用代表任意字符。
[] # 匹配一个指定范围内的字符,如'[Gg]rep'匹配Grep和grep。
[^] # 匹配一个不在指定范围内的字符,如:'[^A-FH-Z]rep'匹配不包含A-R和T-Z的一个字母开头,紧跟rep的行。
[^] # 匹配一个不在指定范围内的字符,如:'[^A-Z]rep' 匹配不包含 A-Z 中的字母开头,紧跟 rep 的行
\(..\) # 标记匹配字符,如'\(love\)',love被标记为1。
\< # 锚定单词的开始,如:'\<grep'匹配包含以grep开头的单词的行。
\> # 锚定单词的结束,如'grep\>'匹配包含以grep结尾的单词的行。
Expand Down

0 comments on commit db498ec

Please sign in to comment.