IT 244: Introduction to Linux/Unix
Class 23

Tips and Examples

Review

New Material


Microphone

Graded Quiz 9

You can connect to Gradescope to take weekly graded quiz today during the last 15 minutes of the class.

Once you start the quiz you have 15 minutes to finish it.

You can only take this quiz today.

There is not makeup for the weekly quiz because Gradescope does not permit it.

Homework 11

I have posted homework 11 here.

It is due this Sunday at 11:59 PM

This will be the last homework assignment.

Announcement

The UMB IT Club and Boston Linux User Group will hold a Linux InstallFest on Saturday, May 3rd, from 9 to 5 in the McCormack Conference Room, M03-0721.

If you have a machine on which you would like to install Linux and would like some help in doing this, bring it the InstallFest.

Volunteers from the Boston Linux User Group with be on hand to help with the installation.

They will also help you install the Window Subsystem for Linux (WSL) on your machine or install Linux as a dual boot.

You can also bring your questions about Linux or Unix to the InstallFest.

The Boston Linux and Unix User Group counts among its members some of the most knowledgeable Linux and Unix people in the Boston area.

You will find directions to M03-0721 here.

Questions

Are there any questions before I begin?

Tips and Examples

A Real World Script Example

Review

Shell Scripts

Shell Script Control Structures

The Problem With Unix if Statements

The if ... then Construct

test

The test operators

test Operators for Comparing Numbers

test String Operators

File and Directory Operators

Logical Operators

Attendance

New Material

Another Way to run test

The if ... then ... else ... Construct

The if ... then ... elif ... Construct

Exit

Checking the Arguments to a Script

Usage Messages

Better Usage Messages Using basename

Incremental Development

Another Benefit of Incremental Development

Debugging Scripts

Indenting When Writing Scripts

Class Exercise

Class Quiz