Bash scripting
This course teaches you how to write Bash shell scripts. It is aimed at colleagues who plan to work with UNIX-like operating systems including (but not limited to) HPC clusters.
Instructor: András Aszódi.
Topics
- Basics: variables, arrays, shell arithmetics.
- Flow control: logical decisions, iteration loops.
- Modularity: Bash functions.
- File path manipulations.
- Command-line argument processing, simple text-based menus.
Out of scope
We will not learn about how to run programs on the HPC cluster! That knowledge is offered in the CBE HPC cluster introduction course.
Also note that this course addresses only the basics of Bash scripting. Consider attending the Regular expressions course to learn about how to find (and modify) string patterns in text files.
Prerequisites
- Familiarity with the UNIX command line is required. If you attended our UNIX command line course then you are well prepared.
- The ability to type with a low error rate is necessary, because this is a hands-on training.
- Programming experience is not required but desirable.
Practical information
Number of participants: minimum 5, maximum 10.
Length: The course takes a half day, usually from 09:00 to 13:00.