Posted by Unknown 0 komentar
Download free Unix Shell Scripts.pdf In previous discussions we have talked about many of the facilities of the C shell, such as command aliasing, job control, etc. In addition, any collection of csh commands may be stored in a file, and csh can be invoked to execute the commands in that file. Such a file is known as a shell script file. The language used in that file is called shell script language. Like other programming languages it has variables and flow control statements (e.g. if-then-else, while, for, goto).

In Unix there are several shells that can be used, the C shell (csh and its extension, the T C shell tcsh), the Bourne Shell (sh and its extensions the Bourne Again Shell bash and the highly programmable Korn shell ksh ) being the more commonly used.

Note that you can run any shell simply by typing its name. For example, if I am now running csh and wish to switch to ksh, I simply type ksh, and a Korn shell will start up for me. All my commands from that point on will be read and processed by the Korn shell (though when I eventually want to log off, exiting the Korn shell will still leave me in the C shell, so I will have to exit from it too).

Table of contents Samsung GT-S5600 Manual
  • Introduction
  • Invoking Shell Scripts
    Direct Interpretation ~ Indirect Interpretation
  • Shell Variables
    Setting Variables ~ Referencing and Testing Shell Variables
  • Command Arguments
  • Language Constructs
  • Escape Characters
  • Examples
    Shell Script For Deleting Files
  • Further Information

0 komentar:

Post a Comment