Shell Programming

In this Shell Programming training, students learn to read, write, and debug Korn shell scripts. Back at work they can greatly increase productivity by automating repetitive tasks (for themselves or others), and by creating specifically tailored utilities designed to meet their precise needs. Students will read and write many shell scripts in this class, which will additionally increase their overall UNIX knowledge and skills.

The course is intended for UNIX users, programmers, and system administrators.

Goals
  1. Learn to read, write, and debug shell scripts.
  2. Increase productivity by taking full advantage of the UNIX shell
Outline
  1. UNIX Processes
    1. What is a Process?
    2. Process Structure
    3. The ps Utility
    4. Options to the ps Utility
    5. Background Commands
    6. Killing Background Processes
    7. Redirecting the Standard Error
  2. Getting Started
    1. What is a Shell?
    2. Running Scripts
    3. Specifying the Script's Interpreter
    4. The PATH Environment Variable
    5. Sub-shells
  3. Variables
    1. Shell Variables
    2. The read Command
    3. The export Command
    4. The Shell Environment
    5. Variable Substitution
    6. Command Substitution
  4. The Login Process
    1. The Login Process
    2. The System Profile Script
    3. Your .profile Script
    4. The . Command
  5. Conditional Statements
    1. The Exit Status of Commands
    2. Command Line Examples
    3. The test Command
    4. The if-then-else Construct
    5. The elif Construct
    6. case Statements
  6. Loops
    1. The for Loop
    2. The while Loop
    3. Reading Lines From Files
    4. Using Arrays with Loops
  7. Special Variables
    1. $$ - PID of Shell
    2. Command-Line Arguments
    3. $# - Number of Arguments
    4. $* - All Arguments
    5. The shift Command
    6. The set Command
    7. Getting Options
  8. Quoting Mechanisms
    1. Single vs. Double Quotes
    2. What is a Here Document?
    3. Using a Here Document
    4. Here Document Quoting
    5. Ignoring Leading Tabs
  9. Functions
    1. Shell Functions
    2. Passing Arguments to Functions
    3. Returning Values from Functions
    4. Function Libraries
  10. Advanced Programming
    1. Shell Arithmetic
    2. The select Statement
    3. Terminal Independence in Scripts
    4. The eval Command
  11. Debugging Techniques
    1. Using echo
    2. Using Standard Error
    3. Options for Debugging
    4. Script Tracing
    5. Conditional Debugging
  12. Shell IPC
    1. Co-processes
    2. ITCourseware, LLC 2
    3. Shell Programming
    4. The print and read Commands
    5. Signals
    6. The trap Command
    7. Named Pipes
    8. The wait Command
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this Unix class:

  • Basic knowledge of the fundamentals of UNIX

Training for your Team

Length: 3 Days
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors

What people say about our training

Webucutor is good place to take online classes. They have a very good staff and customer response.
VinayDutt Jangampet
No Company
I was unsure about taking online instructor-led training, but the instructor made the experience very rewarding.
Shelia Hernandez
US Courts
Class was well taught and the materials were easy to access. The Webucator interface made it easy to follow along. The examples files provided make it easy to use as a reference when back at the office.
Lisa Elizondo
CalSTRS
Great class at the right level of detail. The live instructor via WebEx is a good alternative to waiting for a local class. I am recommending it to others on my team.
David Holland
Optum Technology

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing

61,857

Students who have taken Instructor-led Training

11,794

Organizations who trust Webucator for their Instructor-led training needs

100%

Satisfaction guarantee and retake option

9.52

Students rated our Shell Programming trainers 9.52 out of 10 based on 7 reviews

Contact Us or call 1-877-932-8228