Linux scripting course
Content
This course will give an introduction to Linux scripting with an introduction to the mostly used loops while programming
- How to create script files in Bash shell- Basic loops in Linux
- Return values
- Printing output
- Sequences and reversing imput
- Setting variables
- Command line parameters
- Arithmetic in bash
- Introduction to expressions
- Test conditions
- Shell logic structures (sequence, decision, loops)
- Shell functions
- Arrays in bash
- i/o issues
- Using Linux scripting in writing SLURM scripts for HPC
- This course provides hands-on sessions
Target
This course is primarily targeted at current VSC-users
Duration
Total duration: 4 hours.
Price
Free of charge
Prerequisites
Having a basic knowledge of Linux is expected (if not please follow first the Linux-introduction course). Users that want to use VSC account for hands-on sessions should already have a VSC account created (bring the private key) and should have followed HPC introduction and Linux for HPC or should have the equivalent knowledge).
Result
- Understanding and writing short Linux scripts
- Getting familiar to expressions, shell functions
- Being able to write a script using logic structures (test, sequence, decision, loop)
Reminder
If you do not have KU Leuven ID (e.g. u-, r- or s- number) and you wish to use our computers for hands-on sessions, please contact us (hpcinfo@kuleuven.be) so that we can create a temporary account for you, with which you will be able to login on computers used during hands-on sessions. Otherwise you can use wifi on your own laptop.