CS2013 Systems Programming

Offered during July-Nov 2025

Department of Computer Science and Engineering @ IIT Palakkad, Kerala, India

Lab 03 -- Advanced Shell scripting

This page gives an overview of the lecture and the lab session on Aug 14, 2025.

Short lecture summary

Readings

  1. The Linux Command Line by William Shotts (Online version)

    acm

    Read chapters (PDF available here)

    • Chapter 19 - Regular expressions
    • Chapter 20 - Text processing
    • Chapter 21 - Formatting output
    • Chapter 30 - Troubleshooting
  2. Dive Into Systems by Suzanne J. Matthews, Tia Newhall, Kevin C. Webb (Online version)

    dis

    Read chapters

  3. Useful commands from the GNU Coreutils and more summarised in 108 Youtube videos (each a few minutes long). If you would like a text summary, you can find it here.

  4. Lectures 5, 6, 8, 9, 10, 11, 13, 14 and 15 of Unix Tools and Scripting course at Cornell.

Practise

  1. Read and practise the exercises from Bash academy

    You can also check pdf version of this document and also an older (but more complete) html version. It has lots of information on good practises and usual pitfalls to avoid in the context of writing shell scripts.

  2. Learn and practise regular expressions. It is a powerful tool of great help. You can practise from this website.

Additional readings