UNIX
training course description
A practical introduction to writing scripts using the Bourne shell under any UNIX operating system. Applicable for
those using the Korn shell as well.
Who will benefit?
Programmers developing programs under UNIX.
Administrators / support personnel who wish to find out more about the workings of UNIX or write simple utility
programs.
UNIX training course prerequisites
UNIX Fundamentals.
Some programming experience would be useful although not essential.
UNIX training course objectives
By the end of the course delegates will be able to:
- Read shell scripts.
- Write shell scripts.
- Use different types of quotes.
- Recognise the role of shell scripts within the UNIX system.
Duration: 2 days
>>Dates, prices & bookings for this course
>>Back to Unix courses overview
|
UNIX
training course contents
Review of UNIX fundamentals
Basic shell scripts
What does the shell do? How are commands executed? Different shells. What is a shell script? Comments,
creating shell scripts.
Variables
Setting variables, using variables, set, scope, export, sourcing, environmental variables, read.
Positional parameters
$0 to $9, $#, $* and others. shift parameter substitution.
Control statements
The test command
The if statement
while loops
for loops
The case statement
Special characters
Redirection of errors, here documents, quoting.
Arithmetic in shell scripts
The expr command.
System shell scripts
Screen handling
The terminfo database
The tput comand
Avanced issues (optional session)
Shell functions, getopts, xargs, debugging shell scripts, portability issues. Extras in the Korn shell.
Optimising shell scripts
The time command, performance tips.
|