Shell Programming Training Ed 1

Shell Programming Training Ed 1 (SA-245)


Shell Programming Training Ed 1 Course Description

The Shell Programming Training Ed 1 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.

Customize It:

With onsite Training, courses can be scheduled on a date that is convenient for you, and because they can be scheduled at your location, you don’t incur travel costs and students won’t be away from home. Onsite classes can also be tailored to meet your needs. You might shorten a 5-day class into a 3-day class, or combine portions of several related courses into a single course, or have the instructor vary the emphasis of topics depending on your staff’s and site’s requirements.

Audience/Target Group

● Database Administrators
● System Administrator
● System Integrator
● Web Administrator

Shell Programming Ed 1 Training (SA-245)Related Courses:

Duration: 5 days

Class 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.

Skills Gained:

● 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

Describe the role of shells in the UNIX environment
Describe the various UNIX/Oracle Solaris shells

Shell Scripting

Describe the structure of a shell script
Create a simple shell script
Implement the various debugging options in a shell script

Shell Environment

Explain the role of startup scripts in initializing the shell environment
Describe the various types of shell variables
Explain command line parsing in a shell environment

Pattern Matching

Describe the grep command
Explain the role of regular expressions in pattern matching

The sed Editor

Describe the sed editor
Perform non-interactive editing tasks by using the sed editor

The nawk Programming Language

Describe nawk as a programming language
Display output by using the print statement
Perform pattern matching by using regular expressions
Use the nawk built-in and user-defined variables

Interactive Scripts

Display output by using the print and echo statements
Accept user input by using the read statement
Describe the role of file descriptors in file input and output

Variables and Positional Parameters

Describe the various types of scripting variables
Define positional parameters for accepting user input


Describe the role of the if statement in testing conditions
Describe the syntaxes for the if/then/else and if/then/elif/else statements
Choose from alternatives by using the case statement
Perform numeric and string comparisons
Compare data by using the , ||, and ! Boolean operators
Distinguish between the exit status and the exit statement


Describe the for, while, and until looping constructs
Create menus by using the select looping statement
Provide variable number of arguments to the script by using the shift statement
Describe the role of the getopts statement in parsing script options


Create user-defined functions in a shell script
Use the typeset and unset statements in a function
Autoload a function file into a shell script


Describe the role of shell signals in interprocess communication
Catch signals and user errors with the trap statement

Request More Information

Time Frame: 0-3 Months4-12 Months

Print Friendly, PDF & Email