Course Outline & Schedule

Call US 408-759-5074 or UK +44 20 7620 0033

Linux Advanced Shell Programming Tools

Curriculum The Linux Foundation

Course Code LASP

Duration 3 Day Course

Price $1,830

Course Description

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

The delegate will practise:

Using the shell line editor Backing up and restoring files Scheduling background jobs using and Using regular expressions Editing text files with Using comparison utilities Using the and utilities Using the and paste utilities Using and Identifying and translating characters Sorting files Translating characters in a file Selecting text from files with the family of commands Creating programs with

Course Modules

Review of Shell Fundamentals (1 topic)

◾ Review of UNIX Commands

Using Unix Shells (6 topics)

◾ Command line and editing ◾ The Korn and POSIX shells

Perpetual Solutions - Page 1 of 5 Course Outline & Schedule

Call US 408-759-5074 or UK +44 20 7620 0033

◾ The Bash shell ◾ Command aliasing ◾ The shell startup file ◾ Shell environment variables

Redirection, Pipes and Filters (7 topics)

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

Backup and Restore Utilities (6 topics)

◾ Archive devices ◾ The cpio command ◾ The tar command ◾ The command ◾ Exercise: Backing up and restoring files using tar ◾ Exercise: Backing up and restoring files using cpio

Background Job Scheduling (7 topics)

◾ Starting background jobs ◾ Background tasks and the command ◾ Process priorities and the command ◾ ◾ Scheduling jobs with the at command ◾ Scheduling jobs with the cron command ◾ Exercise: Running background jobs

Regular Expression Notation (2 topics)

◾ Regular expressions ◾ Extended regular expressions

Searching Files for Patterns (5 topics)

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

Perpetual Solutions - Page 2 of 5 Course Outline & Schedule

Call US 408-759-5074 or UK +44 20 7620 0033

◾ Exercises: Search for patterns with grep and egrep

The Stream Editor - sed (10 topics)

◾ 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 ◾ Exercises: SessionSimple text processing with sed ◾ Exercises: SessionCreate sed scripts to edit files

Commands for Comparing Files (5 topics)

◾ Compare two files with the command ◾ Compare two files with the command ◾ Compare two files with the and sdiff commands ◾ Compare large files with the bdiff command ◾ Exercise: Identifying file differences

File Manipulation (7 topics)

◾ The head and tail commands ◾ The cut command ◾ The paste command ◾ The command ◾ The split and csplit commands ◾ Exercises: Manipulate text with cut and paste ◾ Exercises: Manipulate text with head and tail

Identify and Translate Characters (6 topics)

- octal ◾ Use to display non-printing characters ◾ The and commands ◾ The command ◾ Exercises: Translating text files with tr ◾ Exercises: Display non-printing characters

Sorting Files (5 topics)

◾ The command

Perpetual Solutions - Page 3 of 5 Course Outline & Schedule

Call US 408-759-5074 or UK +44 20 7620 0033

◾ Specify sort keys with -k ◾ Sort by column positions ◾ The command ◾ Exercises: Sorting text files

Introduction to the Pattern Scanning Utility - awk (16 topics)

◾ 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 ◾ Exercises: Create simple awk scripts ◾ Exercises: Create a simple awk script using variables

awk Program Control Structures (13 topics)

◾ 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 ◾ Exercises: Create an awk script using an associative array ◾ Exercises: Create an awk script using a for loop and if statement ◾ Exercises: Create an awk script using functions

Prerequisites

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

Perpetual Solutions - Page 4 of 5 Course Outline & Schedule

Call US 408-759-5074 or UK +44 20 7620 0033 necessary.

Course Dates

Code Location Duration Price Sep Oct Nov Dec Jan Feb

LASP Virtual Classroom 3 Days $1,830 08-10 03-05 (London)

LASP Virtual Classroom 3 Days $1,830 12-14 (London)

Perpetual Solutions - Page 5 of 5