Korn Shell in Linux Shell Script

Introduction of Korn Shell

 KornShell is a Unix shell which was developed by David Korn at Bell Labs in the early 1980s and announced at USENIX on July 14, 1983. The initial development was based on Bourne shell source code.Other early contributors were Bell Labs developers Mike Veach and Pat Sullivan, who wrote the Emacs- and vi-style line editing modes' code, respectively.

 KornShell is backward-compatible with the Bourne shell and includes many features of the C shell, inspired by the requests of Bell Labs users.

Example


 if test ! -s $1 then
   echo $1 does not exist or is empty.
fi
							

Feature of Korn Shell

      Alias for used commands

      History mechanism.

      Pattern matching for filename

      Interactive editing facility using editor

      Home directory can be represented by a tilde sign (~).

Share Share on Facebook Share on Twitter Share on Google+ Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit