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.

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