You declare a file as text input using the predefined macro DATABASE.
The name of the file must not have a .dbf
extension. The special case
filename which is just -
can be used to indicate that the input file is
to come from standard input (piped into grg
). Note that file types can
be mixed and matched as in the example below.
%%DATABASE "database.dbf" %%DATABASE "mode.txt" "-"
In the above the database.dbf
file is opened as normal, but the
mode.txt
file and stdin
are read in and parsed as awk
structured files and
converted into database files. The names of the database files for reference
in equates would be database
, mode
, and -
. Since
-
could clash in an equate the -
should ideally
be put first in the list of databases (making it master).
Go to the first, previous, next, last section, table of contents.