DB -- dbbatch


dbbatch -- Batch input of data into canonical data base


    dbbatch [-a] [-b basename] [=D] [-h] [-e filename]


   -a[dd]       incorporates (blindly) all inputs as additions to database
   -A[dd]       do not complain that a record marked for addition alreay exists
                (but do not update or duplicate the existing entry)
   -b[ase]      following is basename: 
                    basename.cdb is used as the compressed database to be edited
                    basename.idb is used as the edited database input file
                default basename is "parts".
   -D[elete]    do not complain if record marked for deletion does not exist
   -e[dit]      following filename contains the edit instructions
                    default is to use STDIN.
   -h[elp]      produces this help messagn.
   -v[erbose]   produces diagnotics on STDOUT.


This command takes a Tab-Separated-Value file, in format identical to that produced by the custom report generator (dbreport), and produces a new *.idb file based upon applying those edits to the existing *.cdb file. In the "change" mode, which is the default, an "*EDIT*" field must be included in each line, whose valid contents may only be

"A" to indicate this line is an addition to the database
"C" to indicate that only those fields appearing in the input line are changed in the output file
"D" to indicate that this line is deleted from the database
"N" to indicate that no change is occuring for this line

Lines starting with a "#" are considered comments and ignored.


None reported yet.


High Level programs


Low Level programs


Bob Goeke

RCS Information

$Id: dbbatch,v 1.9 2013/07/19 12:25:43 goeke Exp goeke $