Skip to content

Commit

Permalink
docs(expansion): 补充内容
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Feb 9, 2024
1 parent 76a0e7f commit d8235c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/expansion.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ $ echo [[:upper:]]*

上面命令输出所有大写字母开头的文件名。

字符类的第一个方括号后面,可以加上感叹号`!`,表示否定。比如,`[![:digit:]]`匹配所有非数字。
字符类的第一个方括号后面,可以加上感叹号`!`(或`^`,表示否定。比如,`[![:digit:]]`(或`[^[:digit:]]`)匹配所有非数字。

```bash
$ echo [![:digit:]]*
Expand Down

0 comments on commit d8235c6

Please sign in to comment.