|
This Unix tutorial is recommended for the slightly advanced user who has
a working knowledge of basic UNIX Shell operation either from viewing
VTC's Unix Shell Scripting Fundamentals Tutorial or from another source.
This course describes how to create programs using the syntax and features
of the UNIX Shell, focusing on the most popular-- the Bourne Shell. In
this eight-hour tutorial, author Mark Virtue will demonstrate techniques
that will be compatible with all brands of UNIX, including LINUX. The
shell is a command programming language that provides an interface to
the UNIX operating system. Its features include control-flow primitives,
parameter passing, variables and string substitution. Constructs such
as while, if then else, case and for are available. Two-way communication
is possible between the shell and commands. String-valued parameters,
typically file names or flags, may be passed to a command. A return code
is set by commands that may be used to determine control-flow, and the
standard output from a command may be used as shell input. Find out more
using our Unix Shell tutorials and online training courses.
This training course is designed for fast learning and covers all the
fundamental points of the application, all cds work on a mac or pc and
no application is needed.
The
links below are free Unix Shell tutorials To watch the entire contents
of this training course please purchase the CD or subscribe to the Online
University
Introduction
About this Course
Course Structure
What is the UNIX Shell?
Which Shell?
What is a Shell Script?
Your First Shell Script
A Basic Script
The echo Command
The read Command
Shell Basics Revisited
Special Characters
Comments
Chapter Exercises
Exercise Solutions
Running a Shell Script
Running a Script on the Command-line
Running a Script from within vi
Your PATH and bin
Script Interpreters
CGI Scripts
Shell Programming Features
Shell Variables
Environment Variables
The Trouble with Quotes
Grouping Commands
Line Control
Chapter Exercises
Exercise Solutions
Introducing the Course Project
Course Project Solution
Conditional Code
True and False
Conditional Command Execution
The if Statement
The else Clause
The elif Clause
Using test
The case Statement
Chapter Exercises
Exercise Solutions
Loops
The while Loop
break and continue
Numerical Calculations
The for Loop
Chapter Exercises
Exercise Solutions
Text Processing
About Filters
grep
Regular Expressions
sort
sed
awk
Chapter Exercises
Exercise Solutions
Functions
Program Structure
Defining and Calling a Function
Function Parameters
Function Return Values
Functions in Other Files
Case Study: The yesno Function
Chapter Exercises
Exercise Solutions
Command-line Parameters
Using Command-line Parameters
Using shift
Using set --
Using IFS
Usage Messages
Chapter Exercises
Exercise Solutions
Advanced Scripting
Debugging
Default Values for Variables
Temporary Files
Preventing Abnormal Termination
Chapter Exercises
Exercise Solutions
|