GNU/Linux Shell Scripting

Mesa Community College Network Academy
CIS239 - GNU/Linux Shell Scripting

Mondays and Wednesdays
18:00 - 21:30
starts 2008Aug25

Syllabus as ODF or PDF.

Learning the bash Shell, 3rd edition
Cameron Newham, Bill Rosenblatt
O'Reilly & Associates
ISBN 13: 9780596009656

News
2008Sep24 - added group assignment 1
2008Sep24 - added homework 2
2008Sep25 - added test 2 topics
2008Sep25 - added class notes from 2008Sep15-2008Sep24
2008Okt14 - added finals topics as cited by the class

Homework

All homework assignments are due before class on the due date.

Assignment 1: email the instructor with your prefered email address. Due Monday, 2008Sep08.

Group Assignment 1

Homework Assignment 2

Homework 3: convert one of your Spiegelscript assignments to use my shell script template. Add at least two command line arguments, make sure to update usage and help. Due before class on Monday.

Spiegelscript:

Spiegelscript assignments are due 5 Wednesdays in a row, starting 2008Sep10.

Write some shell script. You get to decide what the script should do.

The script must be your own work and written during the one week period in which it is due.

There is no requirement on how long the script is or what it does. Have fun. Write something you find interesting.

Tests

Incomplete list of possible test 1 topics as listed in class.

Incomplete list of possible test 2 topics as listed in class. Everything that was possible for test 1 can also be used on test 2.

About the class

Call the Business and Industry Institute, 480 461 6100, and ask for Jessica in order to register for classes at the Business and Industry Institute.

CIS239DL, Linux Shell Scripting, is part of a Linux Networking Administration associates degree from the Business and Industry Institute. As part of a degree program the class does have pre-requisites.

I can override the pre-requisites if you have experience that prepares you for the class. Mostly you need basic GNU/Linux or other *NIX experience and some versatility with using the command line. The class does not presume previous programming experience.

The class will cover using basic command line usage, the shell environment and writing shell scripts.

Command line instruction will cover common utilities such as grep, sed and find as well as using shell features such as history editing, command completion and subshells.

Programming instruction will include creating shell scripts and writing one-liners for simplifying command line tasks.

Shell scripting will include: basic control structures; pipes and redirection; functions; arrays; and using external commands.

CIS239DL is being taught as an 8 week course that meets two nights a week.

Shell scripting resources

  • quick reference card and other resources
  • cheat sheet
  • Advanced Bash Scripting Guide
    AttachmentSize
    inclass1.2008Aug27.sh_.txt296 bytes
    inclass2.2008Aug27.sh_.txt322 bytes
    inclass3.2008Aug27.sh_.txt769 bytes
    inclass.2008Sep03.sh_.txt915 bytes
    CIS239DL.2008Sep24.group_exercise.txt1.76 KB
    CIS239DL.2008Sep24.homework2.txt2.74 KB
    CIS239DL.2008Sep29.test2_topics.txt443 bytes
    inclass.2008Sep15.txt753 bytes
    inclass.2008Sep17.sh_.txt835 bytes
    inclass.2008Sep22.exercises.txt430 bytes
    inclass.2008Sep22.sh_.txt496 bytes
    inclass.2008Sep24.sh_.txt395 bytes
    zScript.sh_.txt464 bytes
    CIS239DL.2008Okt13.final_topics.txt526 bytes