Home About Courses Schedule Services Webinars Contact Search

Linux Pattern Tools

SEE SCHEDULE

Duration: 3 Days

Method: Instructor led, Hands-on workshops

Price: $1650.00

Course Code: LI1004


Audience

Technical Users, Applications Programmers, and Systems Programmers.

Description

This course presents the basic concepts and operation of LINUX 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.

Objectives

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

  • Use the stream editor sed as a filter within a LINUX 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 that reads an input file and produces a simple report
  • Interface awk with other LINUX tools to perform data validation, extraction and reporting functions

Prerequisites

Introduction to LINUX and LINUX Shell Programming courses or equivalent experience.

Topics

  • I.Stream Editor Sed
    • 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