.TH "dBASE crossreference" "" "" "Technical Information" .PC .PP .II dBASE .II Ashton-Tate .II "Borland International" dBASE was developed and marketed by Ashton-Tate; this company was purchased recently by Borland International. .PP The following table gives the .B /rdb and \*(UX equivalents for most common dBASE commands. The slug in \fBbold\fR characters gives the dBASE command; the following description gives the equivalent in .B /rdb and \*(UX commands: .II "command^dBASE to /rdb" .nf .sp \n(pDu \fBACCEPT Comment TO Variable\fR .II echo .II read echo Comment ; read Variable .sp \n(pDu \fBAPPEND BLANK\fR echo >> Fileout .sp \n(pDu \fBAPPEND FROM Filename FOR Condition\fR .II row row 'Condition' < Filename >> Fileout .sp \n(pDu \fBBROWSE\fR .II more .II scat .II update more, scat, update, or any text editor .sp \n(pDu \fBCANCEL\fR .II stty DEL (any character set with \fBstty\fR) .sp \n(pDu \fBCHANGE Range FIELD Fieldname FOR Condition\fR .II compute compute 'Range && Condition {Fieldname = Value}' < Filein .sp \n(pDu \fBCLEAR\fR \fBCLEAR GETS\fR .II clear clear .sp \n(pDu \fBCONTINUE\fR .II continue continue [shell statement] .sp \n(pDu \fBCOPY TO Filename FIELD Fieldnames FOR Condition\fR .II row .II column row 'Condition' < Filein | column Fieldnames > Filename .sp \n(pDu \fBCOUNT FOR Condition TO Variable FOR Condition\fR row 'Condition' < Filein | tail +3 | wc -l .sp \n(pDu \fBCREATE Filename\fR .II vi .II ve > Filename ; vi Filename ; ve Filename ; cmd > Filename .sp \n(pDu \fBDELETE RECORD Number\fR .II sed .II tail (sed $NUM+1}q Filename ; tail +$NUM+3}) > tmp; mv tmp Fieldname .sp \n(pDu \fBDELETE NEXT Number\fR \fBDELETE ALL\fR .II mv sed 2q Filename > tmp ; mv tmp Filename .sp \n(pDu \fBDELETE NEXT Number FOR Condition\fR \fBDELETE FILE Fieldname\fR > Filename .sp \n(pDu \fBDISPLAY Range FOR Bedingung Field OFF\fR row 'Range && Dedingung' < Filename | column Fieldnames .sp \n(pDu \fBDISPLAY STRUCTURE\fR .II for for I in * do sed 2q; done .sp \n(pDu \fBDISPLAY MEMORY\fR .II df .II du df ; du .sp \n(pDu \fBDISPLAY FILES ON Disk LIKE Datatype\fR .II ls ls *Datatype ; ls Disk/*Datatype .sp \n(pDu \fB) Program\fR Program .sp \n(pDu \fBCASE Condition\fR .II case Condition) [shell case statement] .sp \n(pDu \fBOTHERWISE\fR *) [shell case statement] .sp \n(pDu \fBDO WHILE Condition CR ENDDO\fR .II while while Condition CR do done .sp \n(pDu \fBEDIT\fR vi, ve, update, ex, ed, me, other editors and commands .sp \n(pDu \fBECT\fR \fBENDDO\fR do [in shell while, until, for statements] .sp \n(pDu \fBERASE\fR clear .sp \n(pDu \fBFIND Text\fR /Text (in vi, ve, update) .sp \n(pDu \fBINDEX ON Fieldname TO Filename\fR .II index index Filename Fieldname ... .sp \n(pDu \fBUSE Filename INDEX Keyfield\fR .II search search Filename Keyfield .sp \n(pDu \fBINPUT Text To Variable\fR Variable=Text .sp \n(pDu \fBINSERT\fR sed ${NUM}q Filename; echo $RECORD; tail +$NUM Filename .sp \n(pDu \fBJOIN TO Filename FOR Condition FIELDS Fieldnames\fR .II jointable jointable Filename1 Filename2 row 'Condition' < Filename2 | jointable Filename1 - column Fieldnames < Filename2 | jointable Filename1 - .sp \n(pDu \fBColumn,Row SAY Comment GET Variable PICTURE\fR .II tput tput Column ; tput Row ; echo Comment ; READ Variable .sp \n(pDu \fBGO\fR \fBGOTO\fR \fBGO RECORD n\fR ve nG .sp \n(pDu \fBGO Fieldname\fR ve / .sp \n(pDu \fBGO TOP\fR ve H .sp \n(pDu \fBGO BOTTOM\fR ve L .sp \n(pDu \fBIF Condition Statement2 ELSE Statement2 ENDIF\fR if Condition then Statement1 else Statement2 fi .sp \n(pDu \fBLOCATE FOR Condition\fR row 'Condition' < Filename .sp \n(pDu \fBLOOP\fR while, until, for [shell statements] .sp \n(pDu \fBMODIFY STRUCTURE\fR column New Fieldnames < Filename .sp \n(pDu \fBNOTE\fR \fBREMARK\fR : Old Comment # New Comment .sp \n(pDu \fBMOVE Old-Filename TO New-Filename\fR mv Old-Filename New-Filename .sp \n(pDu \fBREPLACE Range Fieldname WITH Expression FOR Condition\fR .II compute compute 'Fieldname = Expression' < Filename compute 'Range && Condition {Fieldname = Expression}' < Filename .sp \n(pDu \fBREPORT Form FOR Condition TO PRINT\fR .II report report Form < Filename row 'Condition' < Filename | report Form | print .sp \n(pDu \fBPACK\fR .II pack compress, uncompress [\*(UX] .sp \n(pDu \fBQUIT\fR \fB\fR .sp \n(pDu \fBREAD\fR .II read read Variable .sp \n(pDu \fBRECALL Condition\fR row 'Condition' < Filename .sp \n(pDu \fBRELEASE Variable\fR Variable= .sp \n(pDu \fBRESET\fR \fBRESTORE FROM Filename\fR \fBRETURN\fR .II return return [shell] .sp \n(pDu \fBSAVE TO Filename\fR \fBSELECT\fR row, column, etc. .sp \n(pDu \fBSET\fR .II set set [shell] .sp \n(pDu \fBSKIP\fR \fBSORT ON Fieldname TO Filename\fR sorttable Fieldname > Filename .sp \n(pDu \fBSTORE Expression TO Variable\fR Variable=`Expression` .sp \n(pDu \fBSUM Fieldname TO Variable FOR Condition\fR Variable=`row 'Condition' < Filename | column Fieldname` .sp \n(pDu \fBTOTAL ON Keyfield TO Filename FIELDS Fieldnames FOR Condition\fR .II subtotal row 'Condition' | subtotal Keyfield Fieldnames > Filename .sp \n(pDu \fBUPDATE FROM Filename ON Keyfield\fR update, vi, ve, replace, append, delete, etc. .sp \n(pDu \fBUSE Filename\fR cmd < Filename .sp \n(pDu \fBWAIT\fR wait [shell] .sp \n(pDu \fB@ Row,Column SAY expression\fR cursor Row Column; echo EXPRESSION ve screen and validation file .fi .PP All data-base systems have some method for importing text files. Sometimes you'll be able to use the header information that comes with .B /rdb tables, and sometimes you'll have to specify this information to the target system anyway.