- 论坛徽章:
- 8
|
zooyo 发表于 2012-03-24 11:31
通配符里排除是用 ! ,为什么 ^ 也可以.我也无法解释,等待高人.查了一下资料也没见有提到 ^ 符号.
gnu find 两个都支持
info里面有啊
- `[STRING]'
- Matches exactly one character that is a member of the string
- STRING. This is called a "character class". As a shorthand,
- STRING may contain ranges, which consist of two characters with a
- dash between them. For example, the class `[a-z0-9_]' matches a
- lowercase letter, a number, or an underscore. You can negate a
- class by placing a `!' or `^' immediately after the opening
- bracket. Thus, `[^A-Z@]' matches any character except an
- uppercase letter or an at sign.
复制代码 |
|