Professional Documents
Culture Documents
Typical
operations performed by shell scripts include file manipulation, program execution, and printing
text.
A
script
which
sets
up
the
environment,
runs
the
programme.
Type of shell
1. Bourne shell:- The Bourne shell, sh, was a complete rewrite by Stephen Bourne at Bell
Labs. Distributed as the shell for UNIX Version 7 in 1979, it introduced the rest of the
basic features considered common to all the Unix shells, including here
documents, command substitution, more generic variables and more extensive built
in control structures. The language, including the use of a reversed keyword to mark the
end of a block, was influenced by ALGOL 68.
2. Bourne-Again shell (bash): written as part of the GNU Project to provide a superset of
Bourne Shell functionality. This shell can be found installed and is the default interactive
shell for users on most GNU/Linux and Mac OS X systems.
3. Korn shell (ksh): written by David Korn based on the Bourne shell sources while working
at Bell Labs. It include Job control, command aliasing, and command history
4. Public domain Korn shell : -
Description
vi filename
vi -R filename
view filename
Operation Modes
While working with vi editor you would come across following two modes
esc for
command mode
Insert mode This mode enables you to insert text into the file. Everything
that's typed in this mode is interpreted as input and finally it is put in the file
. Use i for using insert mode.
Command for vi