pwd returns the absolute path name of the current working directory as a string.
Prototype:
string <-- pwd
Example:
/home/sgmlql
/home/sgmlql
The cd operator will change the working directory of the current mtsgmlql execution environment. When invoked with no operands, and the HOME environment variable is set to a non-empty value, the directory named in the HOME environment variable will become the new working directory.
Prototype:
null <-- cd [ string ]
Example:
/home/sgmlql
pwd;
/home
pwd;
/home/sgmlql
This command performs file name ``globbing'' in a fashion similar to the csh shell. It returns a list of the files whose names match the pattern argument.
Prototype:
list <-- ls [ ( string [ , string2 ] ) ]
string : The
pattern (a regular expression) to use;
string2: The directory from witch we want the file names. If string2
is omitted, ls uses the current working directory.
Invoked without argument, ls is equivalent to ls(".*");
Note: The pattern is a POSIX regular expression.
Examples:
ls;
ls(".*\.sgml$");
ls(".*\.(sgml|html)$" , "/web/docs");