Course Overview
The Shell Programming course provides students with the skills to read, write, and debug UNIX shell scripts. The course begins by describing simple scripts to automate frequently executed commands and continues further by describing conditional logic, user interaction, loops, menus, traps, and functions.
This course is intended for system administrators who have mastered the basics of any flavor of the UNIX OS, such as Oracle Solaris and Oracle Linux, and would like to interpret the various boot scripts as well as create their own scripts to automate their day-to-day tasks.
Learn To:
- Create scripts to automate system administration tasks.
- Set local and environmental variables.
- Automate tasks by using regular expression characters with the grep, sed, and nawk utilities.
- Create interactive scripts by using flow control constructs.
- Perform string manipulation and integer arithmetic on shell variables.
- Debug errors in scripts.
Benefits to You
The Shell Programming course provides you with the ability to identify various shells and automate system administration tasks through scripts. You learn to develop advanced scripts that involve using decision making algorithms, loops, variables, parameters and arguments lists.
The course also introduces you to functions that enable you to perform repetitive tasks and the various methods to debug scripts.
Finally, the course concludes by imparting some initial skills at developing useful scripts to automate system administration-related tasks.
Students are provided with the option to run the lab activities on either an Oracle Solaris or Oracle Linux environment.
Who should attend
- Database Administrators
- System Administrator
- System Integrator
- Web Administrator
Prerequisites
- Run basic system commands like rm, cp, man, more, mkdir, ps, chmod, pkgadd, pkgrm, and pkginfo on Oracle Solaris or similar UNIX platform.
- Able to manage files using vi.
- Perform basic operating system routines such as system run levels.
- Perform simple system administration routines like user creation and software installations.
- UNIX and Linux Essentials (D76989)
Course Objectives
- Automate routine operations using loops
- Describe the fundamentals of UNIX shells, shell scripts, and scripting
- Set shell environment variables
- Search information using regular expressions
- Edit input streams using the sed editor
- Create scripts using the nawk programming language
- Include decision-making points within scripts using conditionals
- Perform multiple operations using interactive scripts
- Specify script options using the getopts statement
- Create advanced scripts using variables, parameters, and argument lists
- Automate tasks using functions
- Debug shell scripts using the trap command
- Develop some useful scripts for system administration-related tasks
Course Content
- Unix Shells
- Shell Scripting
- Shell Environment
- Pattern Matching
- The sed Editor
- The nawk Programming Language
- Interactive Scripts
- Variables and Positional Parameters
- Conditionals
- Loops
- Functions
- Traps