Zbex utility programs

From CCARH Wiki
Revision as of 06:35, 13 October 2010 by Craig (talk | contribs) (created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Dmuse comes with six Zbex utilities program. These programs are in the subdirectory called zprogs of the Dmuse home directory. Programs in this directory can be run simply by typing their name (without the .z extension) and then Enter. You can add your own Zbex programs to this directory and they, too, can be run simply by typing the name of the program. Like the programs already in the zprogs directory, they must have a .z extension.

Six Zbex Utility Programs

dcomThis program will compare the contents of two directories and report on all differences. The contents of all sub-directories will be examined.
diffThis program will compare two files and report on all differences. The program works only when the two files are nearly the same. Similar in functionality to the unix command diff.
fcompareThis is a program to compare all files in two directories with a specified extension. The files will be printed out with the labels BAD or OK, depending on whether they are identical or not. The files in directory 1 will serve as the model list.
lostThis is a program to find a specified string in a set of path names. It is called lost, because it is useful in helping to find a file whose location (and possibly whose complete name) you have forgotten. Similar in functionality to the unix tools find and locate.
qedThis is a line editor that allows you to edit very large flat ASCII files that won't fit in a Dmuse window. The maximum number of records that will fit in a Dmuse window is 1000000 (one million).
searchThis program will search for a specified string in all files in the current library having a particular extension. This program is useful in searching a set of .c files for all examples of the use of a particular variable. Similar in function to the unix command grep.

The next several chapters of the Zbex manual describe the details of the of the Zbex programming language. After you have studied this documentation and have tried writing a few programs, you might want to return to this section and examine the six programs above to see how they use various features of the Zbex language.