Monday, October 23, 2017


Enter your email address below to sign up for our mailing list.


Hewlett Packard - H4322S

Course: POSIX Shell Programming
Length: 5 days
Price: $2,500.00
  Currently, there are no scheduled dates for this course.

Course Description

New 5 day version!

This course covers advanced POSIX shell programming for technical users and system administrators. You will learn the tools necessary to automate complex tasks and increase productivity. The format of your course is 50 percent lecture and 50 percent hands-on. The duration of your course is five days.

Intended Audience

HP-UX and UNIX general users, system and network administrators, and software developers.

  • Understand POSIX shell programming and use it to save time with automated scripts
  • Write efficient programs by understanding how shell scripts are processed
  • Customize shell start-up files
  • Easily control your administration tasks
Pre-requisite skills
  • Fundamentals of the UNIX System (HP 51434S) or equivalent experience
  • Fundamental knowledge of programming
Next Steps
  • Perl Programming (H4311S)
Why HP Education Services
  • Experienced and best-in-the-field HP instructors
  • Comprehensive student materials
  • State-of-the-art classroom facilities
  • Hands-on practice
  • Focus on job-specific skills
  • More than 260 locations worldwide
  • Customized on-site delivery
  • Online instructor-led and self-paced training at:
Course Outline
  • Introduction to POSIX Shell Scripts
    • What is a shell script?
    • Script execution
    • The subprocess environment
    • Shell features
  • Shell Scripting
    • Which shell?
    • Recommended shell format
    • Planning to write a shell script
    • Portability issues
  • Variables
    • Variables
    • Displaying and using variables
    • Concatenation and substrings
    • Other sources of data for variables
  • User Input
    • Reading user input
    • Positional parameters
    • Creating positional parameters
    • Conditional substitution
    • External influences
  • Designing Program Output
    • Variable attributes
    • Formatted data
    • Cursor positioning and terminal echo
  • Shell Arithmetic
    • Creating Integer-only Variables
    • Base 16 and Others
    • Working with arithmetic operators and data
  • Branching and Logic Testing
    • Logic testing
    • Conditional operators
    • Multi-way branching and the 'case' statement
  • Shell Patterns
    • Basic expressions
    • More complex patterns
    • Pattern combinations
  • Program Loops
    • The 'while' loop
    • The 'until' loop
    • The 'for' loop
    • Breaking out of a loop and continuing
    • The 'select' loop
  • The 'getopts' Command
    • Processing arguments
    • The getopts and OPTARG variable
    • The OPTIND variable
  • Array Variables
    • Substituting and counting
    • Using integer variables as element numbers
  • Functions and Function Libraries
    • Displaying current shell functions
    • Declaring and using functions
    • Variable scope
    • Function libraries and recursion
  • Managing Input and Output
    • File descriptors
    • Reading / writing using file descriptors
    • Redirecting, parameter lists and 'here' documents
    • Creating parameter lists from input lines
  • Traps and Signals
    • Common signals
    • The trap and stty commands
  • Regular Expressions
    • Regular expressions
    • Metacharacters
    • The grep command
  • Introduction to 'awk'
    • Record processing
    • Pattern matching and relational expressions
    • 'awk' variables
  • Variables, Strings and Arithmetic Operations
    • 'awk' user defined variables
    • Environment variables
    • Arithmetic operations
    • String manipulation
    • Formatted output
    • Command line arguments
  • 'awk' Flow Control
    • Conditional 'if', while and for loops
    • Arrays
    • 'getline', 'next' and 'exit'
    • Processing arrays
    • Associative arrays
  • Stream Editing with 'sed'
    • Substituting text
    • Deleting and printing lines
    • Reading and writing files
    • Multiple 'sed' editor functions