Bash Shell Programming
Revision: TE1402_20060318
(5.65 KB) View, Download, or Print Catalog as a PDF.
Course Length:
4 Days
Course Description:
This course describes the standard Linux shell, bash. All facets of the bash shell are discussed: bash productivity features, bash as the user interface, bash user customization, and bash as a programming language. The programming features of bash are emphasized. Many hands-on labs are given to reinforce the lectures.
Who Should Attend:
The course is intended for LINUX programmers, end users, managers, and current or future system administrators.
Benefits of Attendance:
Upon completion of this course, students will be able to:
- Write shell scripts to solve a wide variety of problems.
- Use customize your environment to suit your personal preferences.
- Increase productivity by using many bash special features including: the history mechanism,command line editing, creating aliases, and writing functions.
- Use bash arithmetic operators.
- Use powerful programming constructs.
- Use the debugging capabilities of bash.
- Use bash job control features.
Prerequisites:
Students should have completed an introductory course in Linux or some version of UNIX (Solaris/AIX/HPUX/etc.) or have equivalent knowledge.
Course Outline:
- Chapter 1: Bash Fundamentals
- User Interfaces
- Shell History
- Shell Functions
- Startup Files
- Changing Directories
- Command Line Formats
- The File System
- Filename Expansion Characters
- Input and Output Characters
- Quoting
- Other Special Characters
- Getting Help
- Control Keys
- Chapter 2: Command Line Features
- Introduction
- Aliases
- The set Command
- Shell Variables
- Exporting Variables
- Hashing
- Functions
- Function Parameters
- Chapter 3: Command Line Editing
- Introduction
- bash History
- Editing With vi
- Editing With emacs
- Textual Completion
- Chapter 4: Fundamentals Of Shell Scripts
- Introduction
- Writing a Script
- Special Shell Variables
- Local Variables
- Variable Syntax
- Pattern Matching
- Command Substitution
- Chapter 5: Decision Making Constructs
- Introduction
- Exit Status
- The return Statement
- The if Statement
- Compound Tests
- Arithmetic Tests
- String Tests
- File Tests
- The test Command
- elif
- case
- Chapter 6: Iterative Constructs
- Looping Constructs
- The for Loop
- The while Loop
- The until Loop
- Chapter 7: Bash Arithmetic
- Introduction
- expr
- bash Arithmetic
- Typed Variables
- Arrays
- Chapter 8: Miscellaneous Features
- Introduction
- shift
- getopts
- read
- here documents
- select
- Processes
- Signals
- trap
- Command Line Processing
- printf



