This shell script and shell programming site aims to provide book reviews and free ebook on bash shell, korn shell, shell commands, linux shell, awk shell, unix commands, ftp shell and all other shells.

BASH Programming − Introduction HOW−TO

BASH Programming − Introduction HOW−TO is written by Mike G mikkey. This article intends to help you to start programming basic−intermediate shell scripts. This bash shell programing document explains you simple scripts, all about redirection, pipes, bash shell scripting variables, conditionals, loops for, while and until, functions, user interfaces, tables, more advance scripts, debugging, and more.
This document tries to be useful in the following situations
  • You have an idea about programming and you want to start coding some shell scripts.
  • You have a vague idea about shell programming and want some sort of reference.
  • You want to see some shell scripts and some comments to start writing your own
  • You are migrating from DOS/Windows (or already did) and want to make "batch" processes.
  • You are a complete nerd and read every how−to available
Read More/Try it

Unix Shell Scripts

Unix shell scripts is written by Norman Matloff. This Unix shell scripting document explains you how to invoke shell scripts, shell variables, shell command arguments, language constructs, escape characters and also there is an example which shows shell script for deleting files.
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).
Read More/Try It

Bourne Shell Programming in One Hour

Bourne Shell Programming in One Hour is written by Ben Pfaff . This shell programming guide explains you shell command basics, intermediate shell programming, built in shell commands, useful external shell commands and more.
Programming with the Bourne shell is similar to programming in a conventional language. If you've ever written code in C or Pascal, or even BASIC or FORTRAN, you'll recognize many common features. For instance, the shell has variables, conditional and looping constructs, functions, and more.
Shell programming is also di erent from conventional programming languages. For example, the shell itself doesn't provide much useful functionality; instead, most work must be done by invoking external programs. As a result, the shell has powerful features for using programs together in sequence to get work done.
This article examines the features of the POSIX shell, more commonly known as the Bourne shell. The most common Bourne shell implementation on GNU/Linux systems is bash, the Bourne again shell." bash incorporates several extensions to the standard Bourne functionality; none of these will be explored by this article. This article is by no means comprehensive. It just skims the surface of many shell features.
Read More/Try It