Valid wildcard characters
You can combine wildcard characters with file-matching options to define a file pool policy.
OneFS supports UNIX shell-style (glob) pattern matching for file name attributes and paths.
The following table lists the valid wildcard characters that you can combine with file-matching options to define a file pool policy.
Wildcard
|
Description
|
---|---|
* |
Matches any string in place of the asterisk.
For example, m* matches movies and m123. |
[a-z] |
Matches any characters contained in the brackets, or a range of characters separated by a hyphen. For example,
b[aei]t matches
bat,
bet, and
bit, and
1[4-7]2 matches
142,
152,
162, and
172.
You can exclude characters within brackets by following the first bracket with an exclamation mark. For example, b[!ie] matches bat but not bit or bet. You can match a bracket within a bracket if it is either the first or last character. For example, [[c]at matches cat and [at. You can match a hyphen within a bracket if it is either the first or last character. For example, car[-s] matches cars and car-. |
? |
Matches any character in place of the question mark. For example,
t?p matches
tap,
tip, and
top.
|