Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | misc |
NOTE Some (limited) functions emulating C-based input and output routines are available. These have been replaced by functions native to Glish. We strongly recommend that you use the Glish functions instead.
Some of these functions are implemented completely in Glish without using the gmisc client. They remain in this tool for now. These functions are indicated in the individual descriptions.
This uses a server process misc which is started when first needed and then automatically restarted if it fails (hopefully never!).
misc | Construct a misc tool |
dir | Return the directory for a given directory name |
escapespecial | escape characters in a string special to the shell |
fclose | close fileid |
fgets | interface to fgets |
fields | list fields in a record or tool |
fileexists | Does this file exist? |
filetype | returns the UNIX type of file |
fopen | interface to c fopen |
fprintf | C-style formatted output |
initspinner | start an ascii activity spinner |
killspinner | kill an ascii activity spinner |
listfields | Hierarchically list fields in a record |
parentdir | Return the parent directory |
patternmatch | Find matching strings using shell expressions |
readfile | reads a file into a buffer |
shellcmd | Execute a shell command |
stripleadingblanks | Strip leading blanks from a string |
striptrailingblanks | Strip trailing blanks from a string |
thisdir | Return the name of this directory |
tovector | Convert variable to a vector |
type | Returns tool type; ``misc'' |