DBLOADTEMPLATE(1)        USER COMMANDS          DBLOADTEMPLATE(1)



NAME
     dbLoadTemplate - Perform substitutions on  variables  in  an
     ".db" file.

SYNOPSIS
     dbLoadTemplate substitution_file

AVAILABILITY
     The tool in available under Unix from the EPICS  application
     directory provided by getrel in release 3.11 or greater.

DESCRIPTION
     This tool applies variable substitutions  specified  in  the
     substitution_file.  It  is  specifically meant to operate on
     ".db" files.  The template file must be in the form used  by
     an  IOC  to load database records using dbLoadTemplate(3) on
     the  IOC.   A  ".db"  file  with  all  the  rules   in   the
     substitution_file  applied  will be printed to standard out.
     See templatefile(5) for a full description of  the  template
     file.


EXAMPLE
     Running the command "dbLoadTemplate sub_file" with  sub_file
     contents of

     file a.db
     {
          { a=test1,b=one }
          { a=test2,b=two }
     }

     and a.db contents of

     database(tester)
     {
          record(ai,"$(a)rec1$(b)")
          record(ai,"$(a)rec2$(b)")
     }

     writes to standard out the following:

     database(tester)
     {
          record(ai,"test1rec1one")
          record(ai,"test1rec2one")
          record(ai,"test2rec1two")
          record(ai,"test2rec2two")
     }






Sun Release 4.1     Last change: 04 Nov 1993                    1






DBLOADTEMPLATE(1)        USER COMMANDS          DBLOADTEMPLATE(1)



SEE ALSO
     templatefile(5)





















































Sun Release 4.1     Last change: 04 Nov 1993                    2