Home About Courses Schedule Services Webinars Contact Search

UNIX Pattern Tools


Duration: 3 Days

Method: Instructor led, Hands-on workshops

Price: $1625.00

Course Code: UI1030


Technical Users, Applications Programmers, and Systems Programmers.


This course presents the basic concepts and operation of UNIX commands which use pattern matching and regular expressions. Included in the course are explanations of the stream editor (sed), as well as the pattern scanning and processing language (awk). The course provides an understanding of how to use these powerful pattern matching tools for information retrieval, data manipulation, and report generation.


Upon successful completion of this course, the student will be able to:

  • Use the stream editor sed as a filter within a UNIX shell pipeline.
  • Describe and use special regular expression characters in sed addresses and substitutes.
  • Specify the features of and uses for awk.
  • List the components of an awk program.
  • Define and code awk patterns and actions.
  • Use awk built-in functions.
  • Use awk arrays and associative memory.
  • Code and execute a complete awk program which reads an input file and produces a simple report.
  • Interface awk with other UNIX tools to perform data validation, extraction and reporting functions.


Introduction to UNIX and Shell Programming courses or equivalent experience.


  • I.Introduction
    • What is SED
    • Commands
      • General Syntax
      • Specific Commands
      • Substitute Command
    • CUT Command
    • Regular Expressions
  • II.Awk Introduction
    • AWK Features
    • Records and Fields
    • Input Files
    • Command Line
    • Patterns and Actions
    • Comments
    • Simple print Statement
  • III.Simple Actions And Patterns
    • User Defined Variables/Constants
    • Special Variables
    • Operators
      • Numeric
      • Alternative
      • Relational and Logical
    • Regular Expression
      • Operators
      • Metacharacters
    • Patterns
      • Ranges
      • Special Pattern BEGIN
      • Special Pattern END
    • Changing Field Separators
  • IV.Complex Actions
    • Formatted Printing with printf
      • Format Specification
      • Output Format Control
    • Operator Review
      • Binary
      • Assignment
      • Unary
      • Concatenation
    • Variables and Fields
    • Flow of Control Statements
      • if
      • while
      • for
      • break
      • continue
  • V.Built-In Functions
    • Function Format
    • String Functions
      • length
      • index
      • substr
      • sprintf
    • Mathematical Functions
  • VI.Arrays And Shell
    • Arrays and Array Use
    • for Statement and Arrays
    • Associative Memory
    • Current FILENAME
    • split Function
    • Additional Statements
      • next
      • getline
      • exit
    • NULL Record Separator
    • Output Redirection
    • Pipes and Pipelines
      • Filters
      • Internal Pipes
    • Command Line Parameters
    • Interaction with Shell
  • VII.Awk Conclusions
    • Advantages
    • Disadvantages
    • Where AWK fits