Code: 
UT
Duration: 
3 Day(s)
Price: 
1295

Overview

The UNIX Advanced Shell Programming Tools course is designed to give delegates practical experience using a range of UNIX tools to manipulate text and incorporate them into UNIX shell scripts

Audience

Programmers, developers and system administrators who need to construct shell scripts using advanced text handling facilities

The UNIX Advanced Shell Programming Tools course assumes knowledge of the UNIX Operating System to the level covered in the Introduction to UNIX Course. Some shell programming experience to the level covered in UNIX Shell Programming is also necessary

Skills Gained

The delegate will practice

  • Using the shell command line editor
  • Backing up and restoring files
  • Scheduling background jobs using cron and at
  • Using regular expressions
  • Editing text files with sed
  • Using file comparison utilities
  • Using the head and tail utilities
  • Using the cut and paste utilities
  • Using split and csplit
  • Identifying and translating characters
  • Sorting files
  • Translating characters in a file
  • Selecting text from files with the grep family of commands
  • Creating programs with awk

Prerequisites

  • UNIX Introduction
  • UNIX Shell Programming

Course Specifics

Course Outline

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: REDIRECTION, PIPES AND FILTERS

  • Standard I/O and redirection
  • Pipes
  • Command separation
  • Conditional execution
  • Grouping Commands
  • UNIX filters
  • The tee command

Session 2: BACKUP AND RESTORE UTILITIES

  • Archive devices
  • The cpio command
  • The tar command
  • The dd command

Session 3: BACKGROUND JOB SCHEDULING

  • Starting background jobs
  • Background tasks and the nohup command
  • Process priorities and the nice command
  • Job control
  • Scheduling jobs with the at command
  • Scheduling jobs with the cron command

Session 4: REGULAR EXPRESSION NOTATION

  • Regular expressions
  • Extended regular expressions

Session 5: SEARCHING FILES FOR PATTERNS

  • The grep family of commands
  • The grep command
  • The fgrep command
  • The egrep command

Session 6: THE STREAM EDITOR - sed

  • Introduction and command line syntax
  • The sed program structure
  • sed program processing
  • Use sed commands
  • sed addresses
  • sed instructions
  • Hold and get functions
  • Advanced flow control

Session 7: COMMANDS FOR COMPARING FILES

  • Compare two files with the cmp command
  • Compare two files with the comm command
  • Compare two files with the diff and sdiff commands
  • Compare large files with the bdiff command

Session 8: FILE MANIPULATION COMMANDS

  • The head and tail commands
  • The cut command
  • The paste command
  • The pr command
  • The split and csplit commands

Session 9: IDENTIFY AND TRANSLATE CHARACTERS

  • od - octal dump
  • Use cat to display non-printing characters
  • The expand and unexpand commands
  • The tr command

Session 10: SORTING FILES

  • The sort command
  • Specify sort keys with -k
  • Sort by column positions
  • The uniq command

Session 11: INTRODUCTION TO THE PATTERN SCANNING UTILITY -

  • Introduction and command line syntax
  • The awk program structure
  • Use regular expressions
  • Operators
  • Simple patterns
  • Extended patterns
  • Comments
  • Special patterns (BEGIN and END)
  • Program variables
  • Built-in variables
  • User defined variables
  • Mathematical operators
  • Enhanced printing
  • Handling user variables

Session 12: awk PROGRAM CONTROL STRUCTURES

  • Program control structures
  • The if construct
  • The while and do ... while constructs
  • The basic for construct
  • Associative array handling
  • Functions
  • Built in functions
  • The system function
  • The getline function
  • User defined functions

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. It's a cost effective option.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.

Scheduled Dates

  • Location
    Cost
    Duration
    Start Date
     
London (Central)
  • London
    1295
    3
    28 Jan 15
  • London
    1295
    3
    25 Mar 15
  • London
    1295
    3
    03 Jun 15
  • London
    1295
    3
    15 Jul 15
  • London
    1295
    3
    09 Sep 15
  • London
    1295
    3
    28 Oct 15
  • London
    1295
    3
    16 Dec 15

Quick Links