CSCI 57 and 65: Introduction to Unix Courses

Laboratory Assignment 11

ASSIGNMENT DUE: see calendar on the web


1. TURN-IN a hard copy of the following:



Added: 4-27-2004 - I forgot to tell CSCI 65 how to test for a null string.

Here is a snippet of code to play with:

if [ -z "$1" ]
then
	echo "First argument was not passed"
fi

Here are my sample scripts also. The "strings" script in particular gives examples similar to what is needed for this assignment.

Finally, since I was slow in putting this up if you are in CSCI 65 I can be a little flexible on this due date if need be. (Nobody has emailed me from 65 asking how to do the above so I am not sure if everyone waits till the night before anyway or if everyone was able to figure this out pretty easily).