Computer Education Classes by FCE

Our Philosophy:
Train Animals,

Educate People.

Programming Classes Link HomeUNIX/LINUX Classes

sed and [n]awk Text Pattern Processing

Course Summary

This course covers filtering text with sed, and text pattern programming in awk. Also covered are UNIX Regular Expressions, as an understanding is needed before serious discussion of sed and awk can begin. This includes types of problems that can be solved, available commands, and regular expressions.

Audience:

Anyone wanting to automate manipulation of text patterns on a UNIX system.

Prerequisite Knowledge:

Fundamental UNIX training or equivalent experience using UNIX. A programming background is helpful. Very helpful would be a background of experience in scripting in any UNIX shell.

Terminal Objectives:

Upon successful completion of this course the student will be able to:
  • Use UNIX Regular Expressions
  • Write sed and awk scripts using the following:
    • Basic command operations
    • Multi-line Sed pattern space
    • Branching commands
    • Test commands
    • Relational and Boolean operators
    • Imported shell variables
    • awk conditionals, loops, and arrays
    • nawk multi dimensional arrays
    • [n]awk arithmetic, string, functions
    • Input from pipes and files
  • Debug awk scripts

Course Length:

3 Days with extensive exercises, 2 Days with less detailed labs

Course Outline:

  1. The tools
  2. Problem solving
  3. Regular Expressions
  4. Sed commands
  5. Sed scripts
  6. Awk program model
  7. Awk flow control
  8. Awk functions
  9. Awk scripts

Send any questions to fredm at this_domain

FAME Computer Education: 5614 Havre St. Corpus Christi, TX 78414: 956-459-(2000+476(-2))