Standard |
Course covers
Linux/UNIX shell programming techniques necessary for Linux/UNIX System
Administrators to understand and create shell script programs in a Linux/UNIX
environment Topics include: Shell
variables, running shell script program, conditional processing, looping
structures, arrays, functions, arithmetic operators, logical operators such as
AND, OR, and NOT, positional parameters and process variables, redirection,
piping and standard error, use of backslash, quotes and back quotes.
|
Competency Areas: |
Hours: |
|
|
|
|
|
|
Shell variables |
Class |
4 |
|
Running shell script programs |
D. Lab |
4 |
|
Conditional processing |
P. Lab/O.B.I. |
0 |
|
Looping structures |
Credit |
6 |
|
Arithmetic operators |
|
|
|
Logical operators |
|
|
|
Positional parameters |
|
|
|
Redirection, piping and standard error |
|
|
|
Arrays |
|
|
|
Functions |
|
|
|
Use of backslash, quotes and back quotes |
|
|
|
|
|
|
|
Prerequisite: CIS 2556 Corequisite: |
||
Course Guide |
|
Competency |
After completing this
section, the student will: |
Hours |
||
|
Class |
D. Lab |
P.
Lab/ O.B.I. |
||
SHELL VARIABLES |
4 |
4 |
0 |
|
|
Purpose |
|
|
|
|
|
|
|
|
|
|
|
Use |
|
|
|
|
RUNNING SHELL SCRIPT PROGRAMS |
4 |
4 |
0 |
|
|
Build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Execute |
|
|
|
|
|
|
Debug shell scripts |
|
|
|
|
|
Troubleshoot shell scripts |
|
|
|
CONDITIONING PROCESSING |
4 |
4 |
0 |
|
|
If statement |
|
|
|
|
|
|
Troubleshoot |
|
|
|
|
Case statement |
|
|
|
|
|
|
Troubleshoot |
|
|
|
LOOPING STRUCTURES |
4 |
4 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Use |
Create loops |
|
|
|
|
|
Create menus using loops |
|
|
|
|
|
Troubleshoot |
|
|
|
ARITHMETIC OPERATORS |
4 |
4 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Use |
Use multiplication as an operator |
|
|
|
|
|
Use division as an operator |
|
|
|
|
|
Use add as an operator |
|
|
|
|
|
Use subtraction as an operator |
|
|
|
|
|
Use exponentiation as an operator |
|
|
|
|
|
|
|
|
|
LOGICAL OPERATORS |
4 |
4 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Use |
Use AND as an operator |
|
|
|
|
|
Use OR as an operator |
|
|
|
|
|
Use NOT as an operator |
|
|
|
|
|
Use < as an operator |
|
|
|
|
|
Use > as an operator |
|
|
|
|
|
Use >= as an operator |
|
|
|
|
|
Use <= as an operator |
|
|
|
POSITIONAL PARAMETERS |
2 |
2 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Use |
Pass variables on the command line |
|
|
|
REDIRECTION, PIPING AND STANDARD ERROR |
4 |
4 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Use |
Implement >, >>, <, | in shell scripts. |
|
|
|
|
|
Redirect standard input, output and error. |
|
|
|
ARRAYS |
4 |
4 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Utilize |
Implement array structures |
|
|
|
FUNCTIONS |
4 |
4 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Utilize |
Implement functions |
|
|
|
USE OF BACKSLASH, QUOTES, AND BACK QUOTES |
2 |
2 |
0 |
|
|
Purpose |
Describe purpose and benefits |
|
|
|
|
|
Understand when to use |
|
|
|
|
Use |
Implement `, “, ‘ |
|
|
|
Suggested Resources |
UNIX Shell Programming, Author: Kochan, Stephen, Sams Publishing ISBN: 0-6724-8448-X
Linux Programming Bible, Author: Goerzen, John, IDG Books ISBN: 0-7645-4657-0
Linux Programming for Dummies, Author: Keogh, Jim, IDG Books ISBN:
0-7645-0691-9