Product Documentation

Database Administrator's Guide

Previous Topic

Next Topic

FairCom DB Standard Wildcards

The FairCom DB standard wildcard pattern matching variables apply to the FairCom Server keywords that operate with files names, such as MEMORY_FILES, KEEPOPEN_LIST, REPLICATE, the !FILES command within the dynamic dump script, and so on. The available list of wildcards is:

* - Multi-character match

? - Single-character match

^ - Negation (must be first character)

For example, consider this list of files:

KEEPOPEN_LIST file1.dat

KEEPOPEN_LIST file2.dat

KEEPOPEN_LIST file30.dat

An asterisk can be used as a wildcard character to match file1.dat, file2.dat, and file30.dat (or fileanythingelse.dat):

KEEPOPEN_LIST file*.dat

A ? can be used to match a single character, which will match file1.dat and file2.dat but not file30.dat:

KEEPOPEN_LIST file?.dat

NOTE: Wildcard matching does not recognize symlinked folders. For example, if the path "myapp/dx30" has a symlink that renames it to "myapp/dx", a REPLICATE wildcard of “myapp/dx/data*” does not match files in “myapp/dx30” because only the actual file open path is matched.

TOCIndex