CFPEEK |
|
CFPEEK |
Sergey Poznyakoff |
By default cfpeek
treats keys as wildcard patterns.
When matching statement identifiers (keywords), two characters have special
meaning: ‘%’ and ‘*’.
A ‘%’ character in place of an identifier matches any single keyword. Thus, e.g.:
cfpeek file.conf .%.bar.baz
will match ‘.foo.bar.baz’, ‘.qux.bar.baz’, but will not match ‘.bar.baz’ or ‘.x.y.bar.baz’.
A single ‘*’ character in place of a keyword matches zero or more keywords appearing in its place, so that:
cfpeek file.conf .*.bar.baz
The tags in block statement are matched using the traditional globbing patterns. See http://www.manpagez.com/man/3/fnmatch.
For example, this:
cfpeek file.conf .*.program="mh-*"
will match any ‘program’ block statement whose tag begins with ‘mh-’.
This document was generated on January 7, 2021 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.