UNIX Shell Programming Featuring KornShell
Course Number: U200
Shell Programming is a two day lecture/lab course designed to teach the concepts, features and functions of the UNIX Korn Shell. The goal of this two-day course, is to provide the necessary tools to become proficient in writing shell scripts for routine tasks. The components needed as building blocks are introduced and integrated with the control constructs to produce sophisticated programs. Through the hands-on approach in a lecture/lab environment, the student is able to perfect programs that can be used in the real-time environment.
The concepts presented in this course are suitable for users of a UNIX environment. This course will be of particular benefit to system analysts, application programmers, system administrators and technical personnel who want to learn how to write KornShell scripts.
This course is intended for users who have previous experience with UNIX Utilities and Commands. Some knowledge of basic programming techniques is helpful.
Upon Completion of this course, students will be able to:
- Define and Redirect Standard Files
- Use the Pipe Operator to Connect Two Commands
- Use Wildcard Metacharacters
- Use the History Command to Recall Commands
- Use Shell Variables
- Define and Use Foreground and Background Processes
- Define and use Processes and Co-Processes
- Use Directory Information in Scripts
- Set and Use Potential Parameters
- Use escape sequences
- Pass arguments to shell scripts and test arguments
- Use conditions and control statements
- Use the if command in a decision
- Use while and for loops
- Debug scripts using execute trace and verbose trace
- Use command substitution
- Group shell commands
- Create and use aliases and functions
- Identify and use signals and handle signals in a shell script
- Use integer and floating-point arithmetic
- Create and use variable arrays
- Perform command evaluation using eval
- Use Here documents and file I/O operators
- Use command options processing
- Use a lock file to synchronize access
- Redirecting Standard Files
- The Pipe operator
- Wildcard Metacharacters
- Command History and Command Line Editing
- Shell Variables
- Foreground and Background Processes
- VI Refresher
- Processes
- Executing Shell Scripts
- Using Positional Parameters
- Escape Sequences
- Passing Arguments to Shell Scripts
- Testing Arguments
- Using Operators
- Making Decisions and Looping
- Using Execute Trace and Verbose Trace to Debug Shell Scripts
- Command Substitution
- Shell Script Examples
- Managing User and Group accounts
- HP Tru64 UNIX Enhanced Security features
- File protections
- File system security
- Improving network security
- Improving workstation security
- Executing a Script as a Sibling
- Grouping Shell Commands
- Control Statements
- Advanced Loop Processing
- Kornshell Aliases
- Kornshell Functions
- The Env Environment Variable
- Using Directory Information
- Menu Processing
- Signals 4-5
- Handling Signals in a Shell Script
- Integer Arithmetic in the KornShell
- Floating-Point Arithmetic in the KornShell
- Variable Arrays
- Changing IFS (Internal Field Separator)
- Command Options Processing
- Pattern Matching Operators
- Using a File to Synchronize Access
- KornShell Command Processing
- Co-Processes
- Readability and Maintainability
- Performance
- Shell Script Examples
|