Bourne Shell Scripting

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Hi there! Welcome to this Wikibook on the wonderful world of the Bourne Shell!

This book will cover the practical aspects of using and interacting with the Bourne Shell, the root of all shells in use in the Unix world. That includes interacting with the shell on a day-to-day basis for the purposes of operating the computer in normal tasks, as well as grouping together commands in files (scripts) which can be run over and over again. Since it's not practical to talk about the Bourne Shell in complete isolation, it also means some short jaunts into the wondrous world of Unix; not far, just enough to understand what is going on and be able to make full use of the shell's very wide capabilities.

There are also some things this book won't do for you. This book is not an in-depth tutorial on any kind of programming theory -- you won't learn the finer points of program construction and derivation or the mathematical backings of program development here. This book also won't teach you about Linux or any other type of Unix or Unix itself or any other operating system any more than is necessary to teach you how to use the shell. Nothing to be found here about Apache, joe, vi, or any other specific program. Nor will we cover firewalls and networking.

We will cover the Bourne Shell, beginning with the basic functionality and capabilities as they existed in the initial release, through to the added functionality specified by the international POSIX standard POSIX 1003.1 for this shell. We will have to give you some programming knowledge, but we hope that everyone will readily understand the few simple concepts we explain.

Having said that, the authors hope you will find this book a valuable resource for learning to use the shell and for using the shell on a regular basis. And that you might even have some fun along the way.

[edit] Chapters

  • Comparing Shells The Bourne Shell versus other shells (or: why the Bourne Shell?) Development stage: 100% (as of October 11, 2005)
  • Running Commands How to execute commands in the Bourne Shell Development stage: 100% (as of October 11, 2005)
  • Environment The Bourne Shell environment (and how it relates to multiprocessing) Development stage: 50% (as of October 18, 2005)
  • Redirection The (standard) ins and (standard) outs of what to do with your pipe... Development stage: 100% (as of October 11, 2005)
  • Test Program Test: a useful external program Development stage: 00% (as of October 18, 2005)
  • Substitution Embedding values of parameters and results of other commands
  • Loops Repeatedly running commmands from the interactive shell Development stage: 25% (as of November 6, 2006)
  • Modularization Programming in blocks -- and having them interact Development stage: 00% (as of October 11, 2005)
  • Parameters Shell settings and debugging Development stage: 00% (as of October 11, 2005)
  • Cookbook Development stage: 25% (as of October 11, 2005)
  • Quick Reference Quick examples to refresh your memory Development stage: 50% (as of February 1, 2006)

[edit] Authors

  1. Kernigh, added Substitution and Loops chapters
  2. Quick reference was originally by Greg Goebel and was from http://www.vectorsite.net/tsshell.html (was public domain licensed) and was partly wikified by unforgettableid.
  3. Other and anonymous contributors

[edit] External Links