Creating commands and programs using the shell

Creating commands and programs using the shell

As well as using the shell to run commands you can use its built-in programming language to write your own commands or programs. You can put commands into a file - known as a shell script - and then execute that file as you would a command or program.

The use of the Bourne shell (sh) is illustrated as this is available on all UNIX systems. Bourne shell scripts will also work under the Bourne Again SHell. The C and TC shells use a programming language which is similar to the C programming language.

See also


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.