| Overview | Module | Function | Class | Tea 3.2.5 Reference Documentation © 2009 PDM&FC |
glob dirName fileSpec [...]
Retrieves a list of files contained in a directory and whose names match a regular expression.
dirName and whose name matches one of the regular
expressions.
As an example, the following function echos to the standard output the names of the files in the current directory.
define list-current-dir () {
foreach fileName [glob "." ".*"] {
$stdout writeln $fileName
}
}
| Overview | Module | Function | Class | Tea 3.2.5 Reference Documentation © 2009 PDM&FC |