Introduction to Shell Scripting

Session Schedule:
September

Description

Shell scripting helps you save time, automate file management tasks, and better use the power of Linux. You’ll learn how to use the command line to carry out repetitive tasks, extract information from files quickly, combine commands in powerful ways, learn about job scripts, shell variables and looping commands, and capture a workflow so you can re-use it easily. Save time, reduce errors, and use Linux more effectively. This workshop is designed for either new High Performance Computing (HPC) users who are familiar with working in a Linux environment, or for experienced users seeking to get more out of shell scripting. 

In order to get the most from the session, participants are strongly encouraged to have a Digital Research Alliance of Canada/ACENET account and to follow along with the exercises. To register contact your supervising professor, ask for their CCRI, then visit https://ccdb.alliancecan.ca/account_application. If your professor is not registered with the Alliance, please have them register, then follow up with you. In addition to an Alliance account, you will want a computer with Windows, MacOS X, or a Unix-based operating system (not a ChromeBook), and a stable internet connection. A registered account is not mandatory, just recommended to get the most out of our lessons. You can attend the first session to see how ACENET can assist in accelerating your computational research before you decide to obtain an account, if you wish.

Prerequisites

Basic familiarity with the Linux command line (e.g., navigating directories, running simple commands). No prior experience with shell scripting is required.

Details
Format
Online
Location
Online
Level
Beginner
Duration
1.5 Hours
Credential
None
Cost
FREE
Learning Objectives

Describe the purpose of shell scripting in Linux and HPC environments
Use command-line tools to automate repetitive tasks
Combine Linux commands using pipes and redirection
Write basic shell scripts to perform file management tasks
Execute a loop using variables in a shell script
Extract and process information from files using the command-line
Create reusable scripts to automate common HPC workflows

Who Should Enrol

This workshop is intended for researchers, students, and professionals who have basic familiarity with Linux and want to automate tasks or improve efficiency using shell scripting. It’s suitable for new HPC users comfortable with the command line and experienced users looking to enhance their scripting skills.