U201: Advanced Linux Workshop - Bourne, C & Korn Shell, Awk - 3 Days
Who Should Attend:
System administrators, software engineers, system analysts, managers, students,
and other IT professionals who wish to learn about using the scripting in Linux,
Linux utilities, administration hints & tricks and system maintenance using
shell scripts.
Objectives:
This hands-on module is intended to provide the participant with advanced working
knowledge of Linux, including how to backup and restore files, writing Bourne,
Korn and C Shell scripts to automate programming tasks, and how to customize
the login environment according to individual preferences.
Participants are expected to have at least some working knowledge of Linux,
including how to log into and out of the system, and how to navigate the directories
and files in the Linux system. These pre-requisite skills may be acquired by
attending U101: Introduction to Linux.
Contents:
Linux
Utilities: Formatting tapes and diskettes; Backing up programs
with tar; Listing contents of backups; Extracting Files from backups; Copying
diskettes. The sed Editor; The grep Command.
Basic Bourne Shell Programming: Why Shell Programming? Creating Shell Programs;
Running Simple Scripts
Advanced Bourne Shell Programming: Command Substitution; Variables and Parameters; File Name Generation; Quoting; here Document; Conditional statements; Looping; Expression Evaluation; Signal Handling.
C
Shell Programming: C Shell Features; Why Use C Shell? Support
for C Shell Creating and Running C Shell Programs; Command and Variable Substitution;
Reading Input; Expressions and File Enquiry Operators; File Name Generation
and Quoting; Job Control; I/O Redirection; Conditional Statements; Looping.
Customising The Login Environment: Creating and Removing Variables; Customization with Predefined Variables; Customisation with Environment Variables; Customization with Built-In Commands; Customising .login, .cshrc, and .logout; C shell history mechanism; Aliases.
Korn
Shell Programming: Comparison with
Bourne and C Shells; Aliasing; History; The whence Command; Variables and Arrays;
Exporting Variables; Typeset; Control Constructs: while Loops; The select ...
case ... esac Construct.
Using
awk: What is awk? Defining and Counting Fields; Printing Fixed
Strings; Logical Test Operators Variables and Expressions;Processing; Formatted
Output I/O Redirection; Using awk With Shell Scripts; Conditional Statements.