IT 244: Introduction to Linux/Unix
Class 27

Today's Topics

Review


New Material

Final Exam

The final exam will be given on Tuesday, May 15th from 3:00 - 6:00.

The exam will be given in the same room we use for this class.

The final will be similar to the mid-term and will consist of a number of questions.

60% of the questions will come from the Ungraded Class Quizzes.

Class 28, on Thursday May 3rd, will be a review session.

Even though classes do not end until the following week, Class 28 will be the last class.

Instead of having a Class 29, I will have Office Hours all day, from 11 AM to 6 PM.

You will only be responsible for the material in Class Notes 28 and the review for the Mid-term, which you will find here.

Although the time alloted for the exam is 3 hours, I would expect that most of you would not need that much time.

You will not be able to leave the room until you turn in your exam paper so you should visit the restroom before you take the test.

The final is a closed book exam.

Today's Class

There will be no Class Quiz today.

The new material we cover today will not be on the final.

Instead, I'll talk about some advanced features of Linux/Unix that you should be aware of.

Review

Using Braces, { } , with Variables

Special Parameters

$ - The PID of the Current Shell Process

! - The PID of the Last Process Put into the Background

? - The Exit Status

Positional Parameters

# - The Number of Command Line Arguments

0 - The Pathname of the Script

1 - n - The Command Line Arguments

New Material

Expanding Null and Unset Variables

:-- Use a Default Value

:= - Assign a Default Value

:? - Displays an Error Message

The [[ ]] Command

&& and || as Command Separators

An Introduction to AWK

Running awk

AWK Syntax

Blank Pattern

Regular Expression Patterns

BEGIN and END Patterns

Comparison Patterns

The comparison pattern will cause its action to be performed when it is true:

Range Patterns

AWK Fields

Class Exercise 27

Today's Class Exercise is unusual.

I am asking you to recreate the script I used to test Class Exercise 25.

Let me explain how this script works.

Attendance

Class Quiz