We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"*" 除了"/"之外的任意0或者多个字符 "?" 除了"/"之外的任意1个字符 "[...]" 匹配括号内的字符, e.g.
注意:
如果bash设置了extglob选项, 会开启『扩展模式』 shopt -s extglob 新增下面的匹配规则
ps: 有没有觉得『扩展模式』下面,!,?,+,*的用法和正则表达式里的很像,只不过是放pattern前面了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
基本
"*" 除了"/"之外的任意0或者多个字符
"?" 除了"/"之外的任意1个字符
"[...]" 匹配括号内的字符, e.g.
注意:
才会匹配隐藏文件
例如:a/./c 可以匹配 a/.b/c, 但a/*/c是不会匹配a/.b/c的
当globstar选项未打开时,"**"不包含『当前文件夹』
扩展模式
如果bash设置了extglob选项, 会开启『扩展模式』
shopt -s extglob
新增下面的匹配规则
ps: 有没有觉得『扩展模式』下面,!,?,+,*的用法和正则表达式里的很像,只不过是放pattern前面了
The text was updated successfully, but these errors were encountered: