Difference between revisions of "Zbex utility programs"

From CCARH Wiki
Jump to navigation Jump to search
(created page)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{ZbexChap
 +
  | before = [[Zbex Properties|Properties]]
 +
  | after = [[Zbex variable declaration statements|Variable declaration statements]]
 +
}}
 +
 
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 {{keypress|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.   
 
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 {{keypress|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.   
  
Line 6: Line 11:
 
<table cellpadding="10" cellspacing="0" border="0" style="background-color:white">
 
<table cellpadding="10" cellspacing="0" border="0" style="background-color:white">
 
<tr valign="top"><td>
 
<tr valign="top"><td>
[[Media:Dcom.z|dcom]]</td><td>This program will compare the contents of two directories and report on all differences.  The contents of all sub-directories will be examined.   
+
[[Media:Dcom.html|dcom.z]]</td><td>This program will compare the contents of two directories and report on all differences.  The contents of all sub-directories will be examined.   
 
</td></tr><tr valign="top"><td>
 
</td></tr><tr valign="top"><td>
[[Media:Diff.z|diff]]</td><td>This 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 [http://en.wikipedia.org/wiki/Diff diff].
+
[[Media:Diff.html|diff.z]]</td><td>This 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 [http://en.wikipedia.org/wiki/Diff diff].
 
</td></tr><tr valign="top"><td>
 
</td></tr><tr valign="top"><td>
[[Media:Fcompare.z|fcompare]]</td><td>This 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.   
+
[[Media:Fcompare.html|fcompare.z]]</td><td>This 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.   
 
</td></tr><tr valign="top"><td>
 
</td></tr><tr valign="top"><td>
[[Media:Lost.z|lost]]</td><td>This is a program to find a specified string in a set of path names.  It is called <i>lost</i>, 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 [http://en.wikipedia.org/wiki/Find find] and [http://en.wikipedia.org/wiki/Locate_%28Unix%29 locate].   
+
[[Media:Lost.html|lost.z]]</td><td>This is a program to find a specified string in a set of path names.  It is called <i>lost</i>, 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 [http://en.wikipedia.org/wiki/Find find] and [http://en.wikipedia.org/wiki/Locate_%28Unix%29 locate].   
 
</td></tr><tr valign="top"><td>
 
</td></tr><tr valign="top"><td>
[[Media:Qed.z|qed]]</td><td>This 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).   
+
[[Media:Qed.html|qed.z]]</td><td>This 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).   
 
</td></tr><tr valign="top"><td>
 
</td></tr><tr valign="top"><td>
[[Media:Search.z|search]]</td><td>This 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 [http://en.wikipedia.org/wiki/Grep grep].
+
[[Media:Search.html|search.z]]</td><td>This 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 [http://en.wikipedia.org/wiki/Grep grep].
 
</td></tr></table></center>  
 
</td></tr></table></center>  
  
 
The next several chapters of the [[Zbex|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.
 
The next several chapters of the [[Zbex|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.
 +
 +
 +
{{ZbexChap
 +
  | before = [[Zbex Properties|Properties]]
 +
  | after = [[Zbex variable declaration statements|Variable declaration statements]]
 +
}}

Latest revision as of 14:54, 15 October 2010

Previous chapter
Properties
Zbex
Manual
Next Chapter
Variable declaration statements

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

dcom.zThis program will compare the contents of two directories and report on all differences. The contents of all sub-directories will be examined.
diff.zThis 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.
fcompare.zThis 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.
lost.zThis 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.
qed.zThis 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).
search.zThis 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.


Previous chapter
Properties
Zbex
Manual
Next Chapter
Variable declaration statements