Skip to main content

Instructor-led training

Bash Programming Training in Olive Branch, Mississippi

Students learn to read, write, and debug shell scripts, thus increasing productivity by taking full advantage of the bash shell.

What you'll learn

Students learn to read, write, and debug shell scripts, thus increasing productivity by taking full advantage of the bash shell.

Prerequisites

Fundamentals of UNIX or Fundamentals of Linux

Course Outline

1. Course Introduction
Course Objectives
Course Overview
Using the Workbook
Suggested References and Reading

2. UNIX Processes
What is a Process?
Process Structure
The ps Utility
Options to the ps Utility
Background Commands (&)
Killing Background Processes
Redirecting the Standard Error

3. Getting Started
What is a Shell?
Running Scripts
Specifying the Script’s Interpreter
The PATH Environment Variable
Sub-shells

4. Variables
Shell Variables
Theread Command
The export Command
The Shell Environment
Parameter Expansion
Command Substitution

5. The Login Process
The Login Process
The System Profile Script
Your .bash_profile Script
The . Command

6. Conditional Statements
The Exit Status of Commands
Command Line Examples
The test Command
The if-then-else Construct
The elif Construct
case Statements

7. Loops
The for Loop
The while Loop
break and continue
Reading Lines From Files
Using Arrays with Loops

8. Special Variables
$$-PID of Shell
Command-Line Arguments
$#-Number of Arguments
$*-All Arguments
The shift Command
The set Command
Getting Options

9. Quoting Mechanisms
Single vs. Double Quotes
What is a Here Document?
Using a Here Document
Here Document Quoting
Ignoring Leading Tabs

10. Functions
Shell Functions
Passing Arguments to Functions
Returning Values from Functions
Function Declarations

11. Advanced Programming
Shell Arithmetic
The select Statement
Terminal Independence in Scripts
The eval Command

12. Debugging Techniques
Using echo
Using Standard Error
Script Tracing
Options for Debugging
Conditional Debugging

Training locations

Bash Programming training across the U.S. and beyond.

We provide Bash Programming training onsite and live online for organizations throughout the United States and internationally.

View all Bash Programming training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • Training for groups of 3 or more
  • Flexible scheduling
  • Experienced instructors
Request a Training Proposal

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.