Winter 2018 - January to April 2018 - Updated 2018-02-22 13:04 EST
awk
– extracting fields from input lines and columns from input filesUSER HOME SHELL PATH TERM $$
.bash_profile
and .bashrc
vi/vim, nano
head, tail
.bashrc
fileCheck the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. Just like in the Real World, not all due dates are on the same days or at the same times.
Worksheets are preparation for your assignments. You can’t do the assignments without having done the worksheets first, and you can’t do the worksheets without having first read the Course Notes:
Make notes from the worksheets on how each command works. What do the options used in the worksheets mean, for each command? (See the weekly List of Commands.)
Form a small study group to do the worksheets. Each person tries the example given, and you make sure you all get the same answers. Worksheets are not for hand-in; they are not worth marks; the assignments test your knowledge of the lectures and worksheets.
The worksheets are available in four formats: Open Office (ODT), PDF, HTML, and Text. Only the Open Office format allows you “fill in the blanks” in the worksheet. The PDF format looks good but doesn’t allow you to type into the blanks in the worksheet. The HTML format is crude but useful for quick for viewing online.
Do NOT open the Worksheet ODT files using any Microsoft products; they will mangle the format and mis-number the questions. Use the free Libre Office or Open Office programs to open these ODT documents. On campus, you can get a copy here: Course Introduction: Install Libre Office.
Worksheets #04 and #05 require you to have read Shell GLOB patterns and Shell I/O Redirection:
alias, sum, unalias
date, head, nl, tail, tr, wc
Worksheet #06 is for the optional VIM Bonus Assignment (extra credit):
vim
vimtutor
program on the CLS.Worksheets prepare you for the upcoming assignments.
Final Exam: Saturday April 28 10h30am (10:30am to 1:30pm; 3 hours – 40%) in room T102A,B,C.
I spent 90 minutes correcting your errors and omissions on your test papers. Many of you lost marks for that. Before your next test, carefully re-read the posted Test Instructions. Penalties go up for making errors on the next tests.
Here are some statistics for the first midterm test:
113 students are currently registered in the course (February 15, 2018). Of the 113, 6 did not write the test, leaving 107 who did.
Of the 107, 21 did not enter a valid test version code on the Scantron form. I had to enter all those test version codes for you, so that you could get some marks.
Of the 107, 17 did not enter their own name to match the name on file with the Algonquin Registrar office. (These students didn’t check their names using the Name Game before the test.)
Of the 107, 6 did not enter their own student number correctly.
Of the 107, 4 did not enter their own name or their own student number correctly, so the test couldn’t be marked. I had to fix those sheets for you so that you could get some marks.
Of the 107, 16 did not put their name on their question sheet. I had to fix those for you, so that you could get your question sheet back for the bonus assignment.
Of the 107, 15 got question #45 wrong even though the answer was given in the Test Instructions printed at the start of the test. (12 people used the same, wrong, answer as the practice test.)
Dozens of students got their lab section wrong on the question sheet. See the Prerequisites in Assignment #06 HTML if you were one of them.
Read All The Words !
The 107 class scores:
100 100 100 97.8 97.8 97.8 97.8 97.8 95.6 95.6 94.8 93.3 93.3 93.3 93.3 91.1 91.1 91.1 88.9 88.9 88.4 88.4 88.4 88 88 87.5 86.7 86.6 84.4 84.1 83.6 82.2 81.9 80 80 80 79.9 79.8 77.8 77.8 77.6 75.6 75.6 75.6 75.6 75.4 73.3 73.3 73.3 71 70.4 69 69 68.9 68.9 68.9 68.3 66.7 66.7 66.7 66 65.3 64.7 64.4 64.4 62.5 62.2 62.2 62.2 60 60 60 57.8 57.8 57.2 55.6 55.6 53.9 53.9 51.7 51.2 51.2 51.1 48.1 45.3 44.8 44.8 44.8 44 44 42.2 41 40 39.7 36.6 35.6 33.3 33.1 31.1 28.9 28.9 28.9 25.9 22 21.3 19.9 18.6
Take notes in class! Keep a pad open on your desk.
This week, we learn more about the shell, including how to save settings so that they are set when you log in.
You will need to learn a text editor. I recommend The VI (VIM) Text Editor.
Keep a notebook with a List of Commands in it.
- You need to write down yourself what each command does.
- Check the updated list of commands each week.
- I will check for this list in your lab periods.
- Bring your notes to class! Stop wasting time looking up commands.
Bonus (optional) Assignment #06 HTML may be done after you get your marks email and question sheet back for Midterm #1. You can use this bonus work to optionally improve your mark on the first midterm test. See the assignment for details.
Your question sheet will be brought to the lab section you wrote on the question sheet, if it is a valid lab section. See the Blackboard course Announcements for details (under “bonus Assignment 6 details”).
I received an email like the text below from a student who was working on a problem for over two hours:
I have spent almost 2 hours on Task 4.6 and I still can’t find the 100 files. […] I think the problem is searching for warez case-insensitive. I know we learned this before, but I just can’t find it in my notes.
This is not good use of student time for two reasons:
You have a search tool that will find keywords inside the course notes. Please use it and save yourself time.
Many students find that hiring a personal tutor helps them get through the first term. Financial assistance is available. See the Tutoring heading in the Course Introduction.
You are not paranoid if they really are out to get you! See the Week 03 Notes HTML for command pipelines to count the attacks on the CLS.
When you are locked out, follow the directions in the notes to get your IP address re-enabled.