奥宝GENESIS 2000培训教材---英文版.doc
文本预览下载声明
- Prepared by: Y.S. ChiuDate : 8 May, 2000 Page 1 of 33C-Shell Script TrainingTable of Content1.0 Introduction of C-Shell1.1 History1.2 The User Environment1.3 History Command2.0 Metacharacters2.1 Command line Metacharacters (; |, ())2.2 Filename Metacharacters2.3 Input/Output Metacharacters (redirection)2.4 Variable Metacharacter ($)3.0 Aliases3.1 unalias4.0 Shell Variables4.1 Local Variables (set)4.2 Environment Variables (setenv)4.3 Built-In Shell Variables4.4 Numeric Shell Variable (@)5.0 File Commands and Permissions6.0 Programming C-Shell6.1 Looping Commands6.2 Conditional Commands7.0 GENESIS 2000 relationship with C-Shell7.1 Linemode Commands7.2 GENESIS Variables7.3 The info Command7.4 The DO_INFO shortcut7.5 Hooks7.6 dbutil7.7 Script Debuger7.8 Script Interface Commands7.9 The gui Application8.0 Assignments and Final Project9.0 Reference- Prepared by: Y.S. ChiuDate : 8 May, 2000 Page 2 of 331.0 Introduction to C-Shell1.1 HistoryWhen UNIX was first written and put to use at ATT Bell Labs in the early 70s, itcame standard with one shell. This shell is name the Bourne Shell, after its author StephenBourne This shell is still being distributed with every version of UNIX today.In 1978, a copy of UNIX was given to the Computer Science Department at theUniversity of California Berkeley. Under the contract from an agency of the United StatesGovernment, the students and faculty developed the first 32-bit virtual memory version ofUNIX. As part of that effort a new command shell, dubbed the C Shell, was written. The newshell provided a number of features that were not available with the Bourne Shell.The new functionality added to the C-Shell was designed to benefit the interactiveuser. Two important additions were the history mechanism, allowing the user to reuse andmodify previously executed commands; and job control, which provided for more controlover tasks initiated by the user. The third change made with the C-She
显示全部