Learning by doing
Trainers with practical experience
Detailed course material
Clear content description
Tailormade content possible
Training that proceeds
In the course Linux Shell Scripting participants learn to write shell scripts in a Linux environment. The participants learn to write scripts with script commands, special characters, regular expressions and I/O redirection. Central in the course is the Bash shell.
The Linux Shell Scripting course starts with an explanation of the basic principles of shell scripts. Shell scripts are typically small programs that are executed by a command line interpreter. System administrators often use shell scripts for operations such as file manipulation, program execution and text printing.
In the course it is explained how to run shell scripts with the exec and fork commands. Furthermore, the syntax of shell scripts is treated. And also the differences between the various shells such as the Bourne, C, Korn and Bash shell are reviewed.
Special attention is paid to the Bash shell. The various profiles, the setting of local and global variables and the export of variables are discussed. And also command substitution and shell expansion are covered.
Then regular expressions, which are ideally suited for pattern matching, are treated. The syntax of regular expressions and the meaning of the various special characters is explained.
Attention is also paid to the sed batch editor and the awk report generator. The sed batch editor allows the creation and modification of a text file to be handled automatically.
Subsequently the Linux Shell Scripting course discusses control flow with conditionals and loops and reading and writing files. The participants also learn to process the input of users in scripts with command line parameters, options and redirection.
Finally calling and writing functions, passing parameters and collecting return values is on the course program.
The course Linux Shell Scripting is intended for administrators, developers and testers who want to learn how to write and understand shell scripts in a Linux environment.
To participate in this course general knowledge of computers and operating systems is required. Programming experience is beneficial for a good understanding.
The theory is treated on the basis of presentations. The concepts are illustrated with demos. The theory is interspersed with exercises. The course times are from 9.30 to 16.30.
The participants receive an official certificate Linux Shell Scripting after successful completion of the course.
Module 1 : Shell Scripting Intro
Module 2 : Executing Commands
Module 3 : Bash Environment
|What are shell scripts?
Types of shells
Bash Startup Files
Conditionals and Arrays
Fork and Exec
Creating Script Files
Shell Initialization Files
/etc/profile and /etc/bashrc
User Configuration Files
/.bash_profile, /.bash_login and /.bash_logout
Global Variables and Local Variables
Module 4 : Regular Expressions
Module 5 : sed and awk
Module 6 : Conditionals
What is Grep?
Grep and Regular Expressions
Single Character Match
What is sed?
Range of Lines
Using sed in Scripts
What is awk?
Print Selected Fields
awk Scripts and Variables
Checking shell Options
Testing exit Status
The test Command
Compound Condition Testing
Initscript with case
Module 7 : Interactive Scripts
Module 8 : Repetitive Tasks
Module 9 : Functions
Prompt for User Input
Redirection of Errors
Closing File Descriptors
Break and Continue
Variables in Functions
Array Variables and Functions
Functions on Command Line
Signals with kill
All our courses are classroom courses in which the students are guided through the material on the basis of an experienced trainer with in-depth material knowledge. Theory is always interspersed with exercises.
We also do custom classes and then adjust the course content to your wishes. On request we will also discuss your practical cases.
The course times are from 9.30 to 16.30. But we are flexible in this. Sometimes people have to bring children to the daycare and other times are more convenient for them. In good consultation we can then agree on different course times.
We take care of the computers on which the course can be held. The software required for the course has already been installed on these computers. You do not have to bring a laptop to participate in the course. If you prefer to work on your own laptop, you can take it with you if you wish. The required software is then installed at the start of the course.
Our courses are generally given with Open Source software such as Eclipse, IntelliJ, Tomcat, Pycharm, Anaconda and Netbeans. You will receive the digital course material to take home after the course.
The course includes lunch that we use in a restaurant within walking distance of the course room.
The courses are planned at various places in the country. A course takes place at a location if at least 3 people register for that location. If there are registrations for different locations, the course will take place at our main location, Houten which is just below Utrecht. A course at our main location also takes place with 2 registrations and regularly with 1 registration. And we also do courses at the customer’s location if they appreciate that.
At the end of each course, participants are requested to evaluate the course in terms of course content, course material, trainer and location. The evaluation form can be found at https://www.klantenvertellen.nl/reviews/1039545/spiraltrain?lang=en. The evaluations of previous participants and previous courses can also be found there.
The intellectual property rights of the published course content, also referred to as an information sheet, belong to SpiralTrain. It is not allowed to publish the course information, the information sheet, in written or digital form without the explicit permission of SpiralTrain. The course content is to be understood as the description of the course content in sentences as well as the division of the course into modules and topics in the modules.