Booking options
£1,497
£1,497
Delivered Online or In-Person
You travel to organiser or they travel to you
Redhill
Two days
All levels
A practical introduction to writing scripts using the Bourne shell under any Linux operating system. Applicable for those using the Korn shell as well.
What will you learn
Read shell scripts.
Write shell scripts.
Use different types of quotes.
Recognise the role of shell scripts within the Linux system.
Linux shell scripting training course details
Who will benefit:
Programmers developing programs under UNIX.
Administrators / support personnel who wish to find out more about the workings of Linux or write simple utility programs.
Prerequisites:
Linux Fundamentals
Duration
2 days
Review of Linux 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 command.
Advanced 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.