----------------------------------------------------- Week 7 Notes for DAT2330 - Ian Allen - idallen@ncf.ca ----------------------------------------------------- Remember - knowing how to find out an answer is more important than memorizing the answer. Learn to fish! RTFM! (Read The Fine Manual) ------ Review ------ In Week 6 (see week06notes.txt) you finished Exercise #4 using the VI editor. You read Chapter 5 and selected parts of Chapter 8 using the Reading/Study guides. You completed five Floppix labs and read several files under the Notes button on the course home page: arguments_and_options.txt internet_basics.txt midterm1.* quotes.txt redirection.txt shells.txt tar_GNU_and_not.txt umask.txt ------------------ This Week (Week 7) ------------------ 1. Note the content of the upcoming Second Midterm listed in file midterm2_topics.txt (under the Notes buttons). The midterm test is 45 minutes long, 10am-10:50am Friday this week (Feb 21). I will post review questions for this test early this week. 2. Read the updated vi_basics.txt file (under the Notes buttons). 3. Read the new shell_script_execution.txt file (under the Notes buttons). Type in and execute the myscript.sh and wrong.sh shell scripts. Do the exercises. 4. Read the selected parts of Chapter 10 using the Chapter 10 Reading/Study: chapter10guide.txt 5. Type in the "whoson" script on p.303. Add the correct first line to the file to make the kernel happy: #!/bin/sh -u Make the script executable. Execute the script. See nice output. Change the first line of your "whoson" script to use each of these programs in turn and try your script again: #!/bin/csh -f #!/bin/cat -n #!/bin/wc #!/bin/ls #!/bin/grep echo #!/bin/rm <== make a copy before you execute this one! Other useful Notes (under the Notes buttons on the course home page): vi_basics.txt shell_script_execution.txt midterm2_topics.txt chapter10guide.txt -------------------------- No Linux access this term -------------------------- ITS will not enable access to the "idallen-linux" machine this term. You will have to work on ACADUNIX (not a Linux machine) when you are not in the T111 lab. Only in your T111 lab do you have access to "idallen-linux" via "ssh" (see week05notes.txt for details).