KORN SHELL Programming

4 Days course

Language: English

This course is only available on request!!


DESCRIPTION
This course describes the UNIX Shell. (It is tailored to either the Bourne, Korn, or C shell).
The shell is the user interface for anybody who works on a UNIX system.
In addition, the shell is also a programming language and a tool for customizing the UNIX environment on a per user basis.
Labs are given throughout the course to reinforce lectures.

WHAT YOU WILL LEARN
Understand process creation
Recognize and use shell metacharacters
Recall commands for automatic execution (Korn and C Shell)
Launch and control jobs (Korn and C Shell)
Provide front ends to well known commands
Create and use shell environment variables
Customize your environment using many shell productivity aids
Write non-trivial shell scripts
Write shell functions (Korn and Bourne)

WHO SHOULD ATTEND:
The course is intended for any UNIX user who wishes to increase their productivity.

ASSUMED KNOWLEDGE
Students must have completed the UNIX introduction course or have had equivalent knowledge.

OUTLINES

CHAPTER 1: GETTING STARTED
1) User interfaces
2) Functions of the shell
3) History of the shell
4) Which shell am I using
5) How is my shell started?
6) Shell startup files
7) Korn Shell logic
8) Spawning Processes
9) Background Processing
10) The kill command
11) The jobs command
12) Suspending jobs

 CHAPTER 2: SHELL VARIABLES & METACHARACTERS
1) Standard files
2) Korn Shell Variables
3) The typeset command
4) Arrays
5) Built in shell variables
6) Creating your own variables
7) Special Shell Variables
8) More on Arrays
9) Variable expansions
10) Variable substitutions
11) Quoting (escape sequences)
12) File name generation characters

 CHAPTER 3: PRODUCTIVITY AIDS
1) Command line editing
2) Aliases
3) The history command
4) Functions
5) The set command
6) The user environment

 CHAPTER 4: PROGRAMMING THE SHELL (PART 1)
1) Perspective
2) Creating a script
3) Sending arguments to a script
4) Front ends
5) Decision making in the Korn shell
6) if statement
7) Operators
8) if Variations

 CHAPTER 5: PROGRAMMING THE SHELL (PART 2)
1) Loops
2) for Loop
3) while Loop
4) until Loop
5) read Loop
6) case Loop
7) break and continue

 CHAPTER 6: MISCELLANEOUS
1) Korn shell arithmetic
2) here documents
3) The getopts command
4) The trap command
5) File i/o
6) Debugging a script

 CHAPTER 7: EXAMPLES OF SCRIPTS
1) A front end example
2) Swapping two files
3) Count files in path directories
4) Frequency count of words in a file
5) Add values from field n of a file
6) Prototyping a large project

 APPENDIX-1: TABLES
1) Built in shell variables
2) Built in shell commands
3) Control flow constructs
4) Operators
5) Variable substitution
6) Other shells
7) Comparison with C and Bourne Shell
8) C Shell control flow constructs
9) Differences between sh and ksh
10) Bibliography

 APPENDIX-2: REVIEW OF COMMON UNIX FILTERS
1) grep - Find lines patching a pattern
2) wc - Count words, lines and characters
3) sort - Sort lines of a file
4) head - Show first few lines of a file
5) tail - Show last few lines of a file
6) tr - Translate characters from one set to another
7) cut - Cut out chars or fields of a file
8) od - Octal dump a file
9) paste - Paste together respective lines of a file
10) awk - Data retrieval language
11) sed - Non interactive stream editor

 APPENDIX-3: NEW FEATURES OF 12/28/93 ksh


[HOME] [dates] [reserve] [seminars]
FDDI Institute
De Regenboog 11 - 2800 Mechelen - Belgium - Europe
Tel 32 15 24 50 58 - Fax 32 15 25 10 50