Next: Automatic filename generation
Up: File naming
Previous: File naming
  Contents
  Index
There can be UNIX shell environment variables in any input or output
filename. The environment variables have to be in the format
${VARNAME} or $(VARNAME). Also, four predefined macros are
available for string variables:
- ${LIB} is expanded into the $LIB_MODELLER variable
defined in modlib/libs.lib (equal to $MODINSTALL6/modlib);
- ${DIR} is expanded into the TOP variable DIRECTORY;
- ${JOB} is expanded into the root of the TOP script filename;
- ${DEFAULT} is expanded into
(ROOT_NAME)(FILE_ID)(ID1)(ID2)(FILE_EXT),
where ROOT_NAME, FILE_ID, ID1, ID2, and FILE_EXT
are TOP variables. FILE_ID is a string that may be set to
'default'. In that case, a hard-wired short string is used instead of
FILE_ID. Otherwise, the explicitly specified FILE_ID is
applied. In any case, FILE_ID is not modified by the
filename generation routine so that it can be used more than once
without resetting it to the 'default' value. Four digits are used
for both ID1 and ID2. For example, '2ptn.B99990001'
results from ROOT_NAME = '2ptn', FILE_EXT = '.B',
ID1 = 9999, and ID2 = 1.
Next: Automatic filename generation
Up: File naming
Previous: File naming
  Contents
  Index
Bozidar BJ Jerkovic
2001-12-21