NOTE: The scripts and programs in this directory may have had a ".txt" suffix added, to make sure that they are treated as text when your browser downloads them. You may need to remove the ".txt" suffix to compile or run them on your own computer.

Weekly Class Notes

Aug 30 12:59 2004  week01notes.txt   Week 1 Notes for DAT2330
Sep 13 14:51 2004  week03notes.txt   Week 2-3 Notes for DAT2330
Dec  1 09:45 2004  week14notes.txt   Week 14 Notes for DAT2330

Important Notes (alphabetical order)

Nov 10 03:54 2004  CGI_script.txt   Building a CGI Script on Unix
Mar  2 09:19 2005  ClassRepREADME.html   Subject: Class Representatives, 2004-2005
Aug 30 04:01 2004  README.txt   README - Index to this DAT2330 directory
Dec  6 11:41 2004  abbreviations.txt   Marking Code comment abbreviations
Sep 13 13:20 2004  acadunix_help.txt   Using the ACADUNIX IBM Unix machine
Aug 30 04:01 2004  arguments_and_options.txt   Options and Arguments on Unix Command Lines
Nov  1 13:55 2004  command_substitution.txt   Command Substitution - $(unix command)
Aug 30 04:01 2004  course_linux_server.txt   The Course Linux Server
Dec 12 22:27 2004  datsubmit.txt   Using the datsubmit command
Nov  9 01:21 2004  deep_nesting.txt   Avoiding deeply nested IF statements (Structured/Un-Structured)
Nov  1 13:08 2004  exit_status.txt   Return Code, Exit Status, test, if, and while
Feb 12 04:39 2011  file_system.txt   Unix/Linux File System - (correct explanation)
Aug 30 04:01 2004  file_transfer.txt   File transfer between machines
Dec  9 15:54 2004  finaltest4directions.txt   Directions and preparing for Test #4 (Final Exam)
Aug 30 04:01 2004  home_and_HOME.txt   Directories: current, HOME, and /home
Aug 30 04:01 2004  how_to_print.txt   How to print things in DAT2330
Aug 30 04:01 2004  internet_basics.html   Internet Basics
Sep 20 14:01 2004  knoppix_booting.txt   Using the Knoppix Linux CDROM
Nov  2 02:39 2004  labpractice1.txt   Shell programming practice - Weather scripts
Dec  1 12:21 2004  labpractice2.txt   C Language and Makefile practice - Tetris game
Nov  9 01:22 2004  less_code.txt   Less Code is Better Code - stop cutting and pasting identical code
Oct 20 10:50 2005  links_and_inodes.html   Hard links and Unix file system nodes (inodes)
Aug 30 04:01 2004  man_page_RTFM.txt   Searching for items in the Unix manual pages (RTFM)
Sep 23 14:28 2004  miscellaneous.txt   Miscellaneous Unix Facts
Sep 27 05:47 2011  pathnames.txt   Unix/Linux Pathnames
Sep 23 13:12 2004  practiceCommands_1.txt   Practice Unix/Linux Questions #1
Oct 24 16:03 2004  practiceCommands_2.txt   Practice Unix/Linux Questions #2
Nov 15 12:04 2004  practiceCommands_3.txt   Practice Unix/Linux Questions #3
Nov  9 01:08 2004  quick_tests.txt   Return Code, Exit Status, ||, &&, test, and if
Sep 20 23:13 2004  quotes.txt   Unix/Linux Shell Command Line Quoting
Feb  5 16:54 2011  redirection.txt   Unix Shell I/O Redirection (including Pipes)
Feb 20 13:07 2004  script_checklist.txt   Shell Script Checklist - a list of things to verify in your shell scripts
Dec  9 11:51 2004  script_practice2.txt   Practice Script #2 Specifications
Dec  9 11:49 2004  script_practice2answer.txt   Two sample solutions to script_practice2.txt
Dec 14 14:57 2004  script_style.txt   Shell Script Programming Conventions and Style
Aug 30 04:01 2004  shell_prompt.txt   Setting the BASH shell prompt
Nov  1 12:39 2004  shell_read.txt   Reading stdin into shell variables
Oct 11 23:09 2004  shell_script_execution.txt   How a Shell Script is "Executed"
Nov  1 12:27 2004  shell_variables.txt   Shell Variables you should know (including $* and $@)
Aug 30 04:01 2004  startup_files.txt   Setting up Startup Files: .profile and .bashrc
Jan  9 11:41 2004  telnet_usage.html   Using Telnet/Ssh to Unix Systems
Nov  1 11:33 2004  umask.txt   Umask and Permissions
Dec  9 14:08 2004  unix_command_list.txt   Basic Unix/Linux Command List
Oct 11 22:28 2004  unix_permissions.txt   Unix Permissions
Aug 30 04:01 2004  unix_shell.txt   The Unix/Linux Shell
Aug 30 04:01 2004  vi_basics.txt   The VI (VIM) Editor - Basics
Sep 28 01:53 2004  week4answer.txt   Week 4 in-lab exercise solution

Projects/Labs/Assignments/Exercises (for hand-in)

Oct  5 04:30 2004  exercise01.txt   Exercise #1 for DAT2330 due October 12, 2004
Oct 18 01:34 2004  exercise01answer.sh.txt   Answer file: Exercise#1 - exercise01commands.sh
Nov  8 16:58 2004  exercise02.txt   Exercise #2 for DAT2330 due November 9, 2004
Nov 18 00:36 2004  exercise02answer_label.sh.txt   Ian! D. Allen - idallen@idallen.ca
Nov 18 00:32 2004  exercise02answer_tux.sh.txt   Ian! D. Allen - idallen@idallen.ca
Nov 17 23:28 2004  exercise03.txt   Exercise #3 for DAT2330 due November 23, 2004
Dec  5 02:20 2004  exercise03answer_myweather.sh.txt   show the current temperature/pressure/visibility/humidity for a city
Dec  1 12:42 2004  exercise04.txt   Exercise #4 for DAT2330 due November 30, 2004
Dec  5 02:41 2004  exercise04answer_moreweather.sh.txt   show changes in temperature/pressure/visibility/humidity for a city
Dec  1 15:59 2004  exercise05.txt   Exercise #5 for DAT2330 due December 7, 2004
Dec  9 13:10 2004  exercise05answer_gethangman.sh.txt   Answer file: Exercise #5 - gethangman.sh

Shell Scripts

Sep 20 23:18 2004  argv.sh.txt   This shell script displays the command line arguments.
Nov 22 20:18 2004  cgi_answer.sh.txt   sample answer for the CGI script exercise in CGI_script.txt
Nov  4 19:39 2004  commandline_arguments.sh.txt   demonstrate the use of command line arguments in a script
Nov 15 11:47 2004  elif.sh.txt   Syntax:
Oct 19 23:47 2003  file_size_classer.sh.txt   Classify a file as small, medium, large.
Feb 25 03:25 2004  iftest1.sh.txt   We don't want the usual output of DIFF on the screen, so we throw it away.
Feb 25 03:26 2004  iftest2.sh.txt   For a list of numeric comparison operators, see the "test" man page.
Feb 25 03:26 2004  iftest3.sh.txt   String comparison uses "=" not "-eq".
Feb 25 03:26 2004  iftest4.sh.txt   See the "test" man page for a larger list of file-testing operators.
Feb 25 03:27 2004  iftest6.sh.txt   Issue an error message unless exactly one command line argument is given.
Feb 25 03:27 2004  iftest7.sh.txt   Print an error if the argument is missing, or is not a file.
Nov 15 13:59 2004  iftest8.sh.txt   Specifications:
Nov 15 13:56 2004  iftest9.sh.txt   Specifications:
Nov  9 03:38 2004  integer_sort.sh.txt   read three integers and sort them
Feb 24 13:43 2004  optional_args1.sh.txt   Demonstrate method 1 for prompting for missing command line arguments.
Feb 24 13:45 2004  optional_args2.sh.txt   Demonstrate method 2 for prompting for missing command line arguments.
Oct 20 00:04 2003  optional_args3.sh.txt   Display PWD MAIL HOME replaced by optional command line arguments.
Feb  7 03:44 2005  passwd_string_finder.sh.txt   look for an optional string in the Unix password file
Nov  9 03:23 2004  path_tester.sh.txt   Perform several tests on the first argument to this script.
Oct 14 17:23 2003  path_validator.sh.txt   Validate a single command line argument (file or directory).
Nov  9 01:26 2004  script_practice1.sh.txt   Sample solution to script_practice1.txt
Nov  4 19:44 2004  shellread.sh.txt   demonstrate the use of the shell "read" built-in command
Oct 14 17:06 2003  showtest.sh.txt   This script runs in "debug" mode (see the -x above).
Oct 14 17:19 2003  sort_top_five.sh.txt   This scripts sorts a file and displays the top 5 lines.
Feb 22 11:26 2004  string_compare.sh.txt   This script compares two strings: an argument and stdin.
Nov 15 13:40 2004  wait_login.sh.txt   Syntax: $0 userid
Feb  7 03:52 2005  weather1.sh.txt   A weather script to show the current temperature in Ottawa (YOW)
Feb  7 03:56 2005  weather2.sh.txt   A weather script to show the current temperature in Ottawa (YOW)
Apr  9 02:10 2004  while.sh.txt   Syntax: $0 (no arguments)
Nov 29 13:40 2004  while2.sh.txt   Syntax: $0 number
Nov  9 03:42 2004  whoson.sh.txt   A shell script to display the users currently logged in.

Program Source

Sep 20 23:15 2004  argv.c++.txt   Save this program as: argv.c++
Sep 20 23:15 2004  argv.c.txt   Save this program as: argv.c
Jan 24 02:43 2004  stdxxx.c++.txt   Produces output on stdout and stderr, prompts and reads from stdin.

Miscellaneous

Sep  7 22:57 2004  ClassRepFormWoodroffe.doc   
Sep  7 22:57 2004  ClassRepresentativeJobDescription2004-2005.doc   
Sep  7 22:56 2004  E02.doc   
Sep  7 22:57 2004  E02.wpd   
Aug 31 17:09 2004  dat2330-04f.pdf   
Mar  4 14:13 2004  nonchristian2004.pdf   

Quizzes, Tests, and Exams

Sep 23 01:21 2004  practiceTest1.pdf   
Sep 23 01:21 2004  practiceTest1.ps   
Sep 23 11:25 2004  practiceTest1.txt   Practice Test #1 Questions
Oct 20 02:27 2004  practiceTest2.pdf   
Oct 20 02:27 2004  practiceTest2.ps   
Oct 20 02:27 2004  practiceTest2.txt   Practice Test #2 Questions
Nov 18 23:36 2004  practiceTest3.pdf   
Nov 18 23:36 2004  practiceTest3.ps   
Nov 18 23:36 2004  practiceTest3.txt   Practice Test #3 Questions
Dec  8 18:47 2004  practiceTest4.pdf   
Dec  8 18:49 2004  practiceTest4.ps   
Dec  8 18:49 2004  practiceTest4.txt   Practice Test #4 Questions
Sep 23 14:48 2004  termtest1content.txt   Test #1 Topics (what to study)
Sep 28 06:28 2004  termtest1directions.txt   Directions and preparing for Test #1
Sep 29 10:55 2004  termtest1multiplechoice.pdf   
Sep 29 10:55 2004  termtest1multiplechoice.ps   
Sep 29 10:55 2004  termtest1multiplechoice.txt   Test #1 Multiple Choice
Sep 29 11:08 2004  termtest1shell.pdf   
Sep 29 11:08 2004  termtest1shell.ps   
Sep 29 11:08 2004  termtest1shell.txt   Test #1 Shell Programming
Oct  7 22:52 2004  termtest1shellanswer.txt   Test #1 answer - Script Section - 66 marks - 4 of 10%
Oct 21 15:55 2004  termtest2directions.txt   Directions and preparing for Test #2
Nov  1 13:19 2004  termtest2multiplechoice.pdf   
Nov  1 13:19 2004  termtest2multiplechoice.ps   
Oct 25 23:12 2004  termtest2shell.pdf   
Oct 25 23:12 2004  termtest2shell.ps   
Oct 25 23:12 2004  termtest2shell.txt   Test #2 Shell Programming
Nov  1 13:42 2004  termtest2shellanswer.txt   Ian! D. Allen idallen@idallen.ca
Nov 19 00:09 2004  termtest3directions.txt   Directions and preparing for Test #3
Nov 29 22:04 2004  termtest3multiplechoice.pdf   
Nov 29 22:04 2004  termtest3multiplechoice.ps   
Nov 29 22:04 2004  termtest3multiplechoice.txt   Test #3 Multiple Choice
Nov 29 21:59 2004  termtest3shell.pdf   
Nov 29 21:59 2004  termtest3shell.ps   
Nov 29 21:59 2004  termtest3shell.txt   Test #3 Shell Programming
Nov 29 22:12 2004  termtest3shellanswer.txt   One line description:
Dec 14 01:18 2004  termtest4Ashell.pdf   
Dec 14 01:18 2004  termtest4Ashell.ps   
Dec 14 01:18 2004  termtest4Ashell.txt   Test #4A Shell Programming
Dec 14 01:18 2004  termtest4Ashellanswer.txt   Test #4 answer - Script Part II - 70 marks - 11 of 35%
Dec 14 01:18 2004  termtest4Bshell.pdf   
Dec 14 01:18 2004  termtest4Bshell.ps   
Dec 14 01:18 2004  termtest4Bshell.txt   Test #4B Shell Programming
Dec 14 01:20 2004  termtest4Bshellanswer.txt   Test #4 answer - Script Part III - 68 marks - 12 of 35%
Dec 14 01:18 2004  termtest4multiplechoice.pdf   
Dec 14 01:18 2004  termtest4multiplechoice.ps   
Dec 14 01:18 2004  termtest4multiplechoice.txt   Test #4 Multiple Choice

Optional Material

Aug 30 04:01 2004  opt_mainframe_linux.txt   IBM System/390: The Linux Dream Machine
Aug 30 04:01 2004  opt_opensource.txt   The Open Source Movement
Aug 30 04:01 2004  opt_why_shell.txt   Why Learn to program the Unix Shells?

Data Files and Media (binary)

Dec  2 11:00 2004  hangman-cpp.tar.gz