Installation manual
Grouping Files into Filesets
Grouping Files by Filename
13-4 CLI Storage-Management Guide
• ? is any single character, or no character.
• [...] matches any one of the enclosed characters. For example, [xyz]
matches x, y, or z.
• [a-z] matches any character in the sorted range, a through z.
• [^...] or [!...] matches any character that is not enclosed. For example,
[!xyz] matches any character except x, y, or z.
ignore-case (optional) matches the above without considering letter case.
For example, the following command set matches files in any directory named “xml”
or “xsl” (upper or lower-case), such as “/www/xml,” “/www/XSL,” “/var/log/Xml,”
“/xsl,” or “/XML:”
bstnA6k(gbl)# policy-filename-fileset inXmlOrXslDirs
bstnA6k(gbl-ns-vol-fs-name[inXmlOrXslDirs])# path match “*/x[ms]l” ignore-case
bstnA6k(gbl-ns-vol-fs-name[inXmlOrXslDirs])# ...
Using a Complex Regular Expression
You can also match directories using a more complex regular expression. For this
option, use the
regexp keyword along with a quoted regular expression:
path regexp “regular-expression” [ignore-case]
where
regular-expression (1-1024 characters) uses IBM’s ICU conventions for
regular expressions (such as “.*\.htm*”, or “[a-z]*\.txt”). The quotes are
required. The section below provides details for the regular-expression
syntax.
ignore-case (optional) matches the above without considering letter case.
A regular expression makes it possible to be very specific about your matching
criteria.
The * and ? match any character, including the “/” character. (The “/” is the Unix
delimiter between directories.) Therefore, path match /usr/*/bin matches both
“/usr/local/bin” and “/usr/src/mydir/tmp/bin.” This may be unexpected for Unix users.