Tips (Efficiency) Features. Introduction. Next Previous Contents BASH Programming - Introduction HOW-TO by Mike G mikkey at dynamo.com.ar Thu Jul 27 09:36:18 ART 2000 This article intends to help you to start programming basic-intermediate shell scripts. It does not intend to be an advanced document (see the title). I am NOT an expert nor guru shell programmer. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 13.1 Ways Calling BASH 14. Advanced. Reference. Table of Contents This text is a brief description of the features that are present in the Bash shell (version 5.0, 12 May 2019). The Bash home page is This is Edition 5.0, last updated 12 May 2019, of The GNU Bash Reference Manual, for Bash, Version 5.0.
Bash contains features that appear in other popular shells, and some features that only appear in Bash. Some of the shells that Bash has borrowed concepts from are the Bourne Shell (sh), the Korn Shell (ksh), and the C-shell (csh and its successor, tcsh). The following menu breaks the features up into categories, noting which features were inspired by other shells and which are specific to Bash. This manual is meant as a brief introduction to features found in Bash. 1 Introduction 1.1 What is Bash? Bash is the shell, or command language interpreter, for the GNU operating system. Bash is largely compatible with sh and incorporates useful features from the Korn shell ksh and the C shell csh. 2 Definitions job. Context. This document is also available in LaTeX2e and gzipped PostScript formats. The slides that accompanied the original talk are also available in LaTeX2e and gzipped PostScript formats.
Note: I've noticed that a few university courses' web pages link to this one. I'm glad that people are finding it useful. Just don't ask me to do your homework. Justification Why bother to learn shell programming, when you could be out there rollerblading or trying to get a date? Because, in a word, it's useful. Many standard utilities (rdist, make, cron, etc.) allow you to specify a command to run at a certain time.
Lastly, Unix runs Bourne shell scripts when it boots. What's it all about? First of all, what's a shell? Furthermore, and this is what this tutorial is all about, you can put commands in a file and execute them all at once. . #! Secondly, the script itself is just a series of commands. . #! The first line of any script must begin with #! To make it executable. Variables VAR=value or #! Prints export VAR #! #! $?