fmatch -k key_regex [ -f data_file ]
The structure of the data_file is:
where empty lines and lines starting with a # are considered as comments. The backslash can be used to define rows spanning multiple lines in the data_file.
The values_list is a white space separated list of values for a certain key and are returned as a uniquely sorted list to stdout.
key;values;
Empty lines and lines starting with a # are considered as comments. The backslash can be used to define rows spanning multiple lines in the data_file.
Example data_file :
#
# etc/hostlist.dat - hostlist csv database file
#
# [00] 12.08.2008 CWa Initial Version
#
#
# Format:
#
# key ::= <Customer>--<SERVER_ENVIRONMENT>
#
# <key>;<value_list>;
#
ACME--INFRASTRUCTURE; acme001 acme002;
LooneyTunes--TEST; ltunes001 ltunes005 ltunes008;
LooneyTunes--PRODUCTION;ltunes002 ltunes003 ltunes004 \
ltunes006 ltunes007;
BOULDER--DEVELOPMENT; boulder000 boulder001 boulder002;
BOULDER--TEST; boulder100 boulder101 boulder102;
BOULDER--PRODUCTION; boulder201 boulder201 boulder202 \
boulder203;
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.