Fundamentals of Unix: Shell/awk Scripting COURSE DESCRIPTION This course teaches the Unix computer professional (user, systems administrator, application/system programmer) the techniques needed to develop advanced shell and reporting type procedures under Unix. Techniques in the major shells will be shown. Note that all Unix systems support all of the techniques in this course. COURSE OBJECTIVES Each participant will be able to use Unix shell (common features, Korn (ksh 88 and ksh 93) commands to maintain collections of files, control usage of shell command scripts, and generate reports using the awk facility. COURSE TOPICS Shell Scripting Common Features Shell environment variables User-defined variables Substitution of variables Looping statement constructs Decision statements Command substitution in variables Using eval Handling signals with trap Writing Korn Shell Scripts Korn Shell environment variables User-defined variables Substitution of variables Command substitution in variables Decision statements Looping statement constructs typesetting variables for output typesetting integer variables the select construct (for menus) using and defining functions accessing files' records using pipes accessing files' records directly with exec special parameter/variable substitutions Korn shell parent-child process communications defining and using arrays Advanced Features in Korn Shell Scripts Options processing active variables and tied functions associative arrays creating and using name reference variables techniques comparison to Perl Using the awk Utility to Generate Reports awk utility calling techniques Patterns and actions Using the BEGIN and END patterns Using awk built-in variables Procedure-defined variables in awk Formatted output using printf if and for constructs Re-direction of awk input and output defining and using arrays obtaining command line arguments with awk special awk signature lines COURSE DURATION This course normally requires three (3) days, approximately 50 % lecture, and 50 % lab time. COURSE PREREQUISITES This is an advanced Unix course. It is assumed that participants either have attended the Fundamentals course for Sun Solaris, IBM AIX, or HP-UX, or have equivalent system time and experience with the interactive shell(s). |