This lesson is in the early stages of development (Alpha version)

An Introduction to Linux Shell Scripting

The Linux command line interface is used to copy files, run programs, and perform many interactive functions, but it also supplies many of the features of more sophisticated general-purpose programming languages, such as flow control, variables, and subroutines. Making use of this expanded functionality allows the user to automate repetitive tasks, chain operations together in job submission scripts, and interact with a variety of command line tools.

This online course will show how to create and run a script, detail the syntax and structure, and demonstrate how to use common text processing tools such as ‘sed’ and ‘awk’ to expand text processing functionality, with the overall goal of increasing productivity in a research environment by reducing the amount of time taken on regular housekeeping operations.

Prerequisites

Attended ARC: An Introduction to Linux with Command Line (& Windows)

Schedule

Setup Download files required for the lesson
00:00 1. Loops How can I perform the same actions on many different files?
01:00 2. Shell Scripts How can I save and re-use commands?
02:00 3. Flow Control How to control the flow of a Bash program?
02:45 4. Arithmetic and Arrays How to perform basic arithmetic operations in Bash?
How to define arrays?
03:25 5. Functions and External Tools How to create functions for easy repeated access to common tasks?
04:00 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.