ES0550: BOURNE SHELL PROGRAMMING
Many users of the UNIX operating system never experience the robust shell command language and its ability to create simple applications without knowing a high level programming language. This course's objective is intended to expand on the shell language, teaching programmers and end users to use shell commands, turning those commands into powerful shell procedures.

For Registration/Information call (586) 336-7860 or
email info@epcom.com

  Return to Course Offerings
 

Who Should Attend

    Managers, Application Developers, System Administrators, and end users who want a working knowledge of the shell command language. Students will receive hands-on training and exposure to many shell commands and techniques that will greatly improve their understanding of the UNIX operating system and increase their productivity.

Prerequisites

UNIX Fundamentals (ES0500) or equivalent knowledge.

What you will learn

    The principal focus of this course is to allow programmers and end users to take advantage of the Bourne shell command language to build, test, and debug shell programs. After completing this course, participants will be able to complete the following tasks:

  • Create a shell program
  • Understand the correct use of quoting
  • Create and assign variables
  • Correct use of test
  • Executive looping statements
  • Define and use if statements
  • Proper use of shell tools
  • Create traps

Course Outline

  1. Introduction/Review
    • Shell definition
    • Redirection and pipes
    • Foreground and background processing
    • Process status
    • Killing a process
  2. Standard Shell Variables
    • Variable Definition
    • Standard shell variables
    • Local variables
    • Environmental variables
  3. How the Shell Works
    • Creating child shells
    • Creating a shell program
  4. Creating Variables
    • Variable assignment
    • Variable substitution
    • Read Command
    • Positional parameters
    • Here documents
  5. Preset Shell Variables
    • $#
    • $*
    • $?
    • $!
  6. Quoting
    • Backslash
    • Single quotes
    • Double quotes
    • Command substitution
  7. Debugging Tools
    • sh -v,
    • sh -x
    • sh -u
    • 10 steps of shell programming
  8. Test
    • Test file attributes
    • Test strings
    • Testing for null value
    • Test numerics
  9. Shell Constructs
    • if-then
    • if-then-else
    • if-then-elif
    • Case
    • Case using metacharacters
  10. Shell Looping Statements
    • while
    • break
    • continue
    • for
  11. Shell Tools
    • grep
    • grep options: i, l, c, n, v
    • sed
    • sed options: e
  12. Traps
    • Trap definition
    • Creating traps
    • Releasing traps

Hands-on Workshops

  • Create and Run Shell Scripts
  • Setting Variables for the Keyboard
  • The Correct Use of Quoting to Execute Commands and Take Away Meanings of Special Characters
  • Use of the Test Command
  • Perform Branching Using If and Case Constructs
  • Use the For and Else Constructs to Repeatedly Execute a List of Commands

Course Duration

    Three (3) days

Course Schedule

Course Materials

  • Comprehensive course workbook/summary
  • Course certificate of completion

For Registration/Information call (586) 336-7860 or email info@epcom.com

  Return to Course Offerings



home - consulting - education - staffing | careers - about us - contact us

v1.0 Copyright 2004, Epcom Corporation