Index of dat2330/04f/notes
The scripts and programs in this directory have had a ".txt" suffix added, to
make sure that they are treated as text when your browser downloads them.
You usually need to remove the ".txt" suffix to compile them.
Jump down to:
* Weekly Class Notes
* Important Notes (alphabetical order)
* Labs/Assignments/Exercises
* Shell Scripts
* C and C++ Programs
* Course Outline / pdf,doc,wpd
* Tests and Exams (with Answers)
* Optional Material
* Data Files (binary)
* Important Notes (chronological order)
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
Oct 12 00:00 2004 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 11 21:57 2004 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
Aug 30 04:01 2004 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
Sep 21 06:44 2004 redirection.txt Unix Shell I/O Redirection (including Pipes)
Nov 9 01:04 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
Aug 30 04:01 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
Labs/Assignments/Exercises
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 Answer file: Exercise #2 - labelcheck1.sh
Nov 18 00:32 2004 exercise02answer_tux.sh.txt Answer file: Exercise #2 - tuxdrinks1.sh
Nov 17 23:28 2004 exercise03.txt Exercise #3 for DAT2330 due November 23, 2004
Dec 5 02:20 2004 exercise03answer_myweather.sh.txt Answer file: Exercise #3 - myweather.sh
Dec 1 12:42 2004 exercise04.txt Exercise #4 for DAT2330 due November 30, 2004
Dec 5 02:41 2004 exercise04answer_moreweather.sh.txt Answer file: Exercise #4 - moreweather.sh
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 Show the equivalence of nested IF statements and ELIF
Nov 9 03:13 2004 file_size_classer.sh.txt Classify a file as small, medium, large.
Nov 15 13:52 2004 iftest1.sh.txt Compare two files in an IF statement, checking the return status of DIFF.
Nov 15 13:52 2004 iftest2.sh.txt Demonstrate the TEST command in an IF statement (numeric test).
Nov 15 13:52 2004 iftest3.sh.txt Demonstrate the TEST command in an IF statement (string tests).
Nov 15 13:52 2004 iftest4.sh.txt File-testing operations by the TEST command in an IF statement.
Nov 15 13:52 2004 iftest6.sh.txt If the script has one argument, tell whether it is exists and is readable.
Nov 15 13:52 2004 iftest7.sh.txt Count the number of lines in the first file name argument.
Nov 15 13:59 2004 iftest8.sh.txt A "backup" script - Structured Programming Version (one entry / one exit).
Nov 15 13:56 2004 iftest9.sh.txt A "backup" script - Non-Structured Programming Version (many exits).
Nov 9 03:38 2004 integer_sort.sh.txt read three integers and sort them
Nov 9 03:20 2004 optional_args1.sh.txt Demonstrate method 1 for prompting for missing command line arguments.
Nov 9 03:20 2004 optional_args2.sh.txt Demonstrate method 2 for prompting for missing command line arguments.
Nov 9 03:20 2004 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.
Nov 9 03:12 2004 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
Nov 9 03:12 2004 showtest.sh.txt Demonstrate the many uses of the built-in TEST command.
Nov 9 03:12 2004 sort_top_five.sh.txt This scripts sorts a file and displays the top 5 lines.
Nov 9 03:12 2004 string_compare.sh.txt This script compares two strings: an argument and stdin.
Nov 15 13:40 2004 wait_login.sh.txt wait until userid signs on, then print a message and exit.
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)
Nov 15 14:01 2004 while.sh.txt Demonstrate a "while" loop, "read", "exec", and "let"
Nov 29 13:40 2004 while2.sh.txt Demonstrate a "while" loop
Nov 9 03:42 2004 whoson.sh.txt A shell script to display the users currently logged in.
C and C++ Programs
Sep 20 23:15 2004 argv.c++.txt Display the arguments on the command line.
Sep 20 23:15 2004 argv.c.txt Display the arguments on the command line.
Sep 21 02:23 2004 stdxxx.c++.txt Produces output on stdout and stderr, prompts and reads from stdin.
Course Outline / pdf,doc,wpd
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
Tests and Exams (with Answers)
Dec 14 01:20 2004 termtest4Bshellanswer.txt Test #4 answer - Script Part III - 68 marks - 12 of 35%
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:18 2004 termtest4multiplechoice.pdf
Dec 14 01:18 2004 termtest4multiplechoice.ps
Dec 14 01:18 2004 termtest4multiplechoice.txt Test #4 Multiple Choice
Dec 8 18:49 2004 practiceTest4.ps
Dec 8 18:49 2004 practiceTest4.txt Practice Test #4 Questions
Dec 8 18:47 2004 practiceTest4.pdf
Nov 29 22:12 2004 termtest3shellanswer.txt Test #3 answer - Script Section - 68 marks - 10 of 20%
Nov 29 22:04 2004 termtest3multiplechoice.pdf
Nov 29 22:04 2004 termtest3multiplechoice.txt Test #3 Multiple Choice
Nov 29 22:04 2004 termtest3multiplechoice.ps
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 19 00:09 2004 termtest3directions.txt Directions and preparing for Test #3
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
Nov 1 13:42 2004 termtest2shellanswer.txt Test #2 answer - Script Section - 64 marks - 6 of 15%
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
Oct 21 15:55 2004 termtest2directions.txt Directions and preparing for Test #2
Oct 20 02:27 2004 practiceTest2.ps
Oct 20 02:27 2004 practiceTest2.txt Practice Test #2 Questions
Oct 20 02:27 2004 practiceTest2.pdf
Oct 7 22:52 2004 termtest1shellanswer.txt Test #1 answer - Script Section - 66 marks - 4 of 10%
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
Sep 29 10:55 2004 termtest1multiplechoice.txt Test #1 Multiple Choice
Sep 29 10:55 2004 termtest1multiplechoice.pdf
Sep 29 10:55 2004 termtest1multiplechoice.ps
Sep 28 06:28 2004 termtest1directions.txt Directions and preparing for Test #1
Sep 23 14:48 2004 termtest1content.txt Test #1 Topics (what to study)
Sep 23 11:25 2004 practiceTest1.txt Practice Test #1 Questions
Sep 23 01:21 2004 practiceTest1.ps
Sep 23 01:21 2004 practiceTest1.pdf
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 (binary)
Dec 2 11:00 2004 hangman-cpp.tar.gz
Important Notes (chronological order)
Mar 2 09:19 2005 ClassRepREADME.html Subject: Class Representatives, 2004-2005
Dec 14 14:57 2004 script_style.txt Shell Script Programming Conventions and Style
Dec 12 22:27 2004 datsubmit.txt Using the datsubmit command
Dec 9 15:54 2004 finaltest4directions.txt Directions and preparing for Test #4 (Final Exam)
Dec 9 14:08 2004 unix_command_list.txt Basic Unix/Linux Command List
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 6 11:41 2004 abbreviations.txt Marking Code comment abbreviations
Dec 1 12:21 2004 labpractice2.txt C Language and Makefile practice - Tetris game
Nov 15 12:04 2004 practiceCommands_3.txt Practice Unix/Linux Questions #3
Nov 10 03:54 2004 CGI_script.txt Building a CGI Script on Unix
Nov 9 01:22 2004 less_code.txt Less Code is Better Code - stop cutting and pasting identical code
Nov 9 01:21 2004 deep_nesting.txt Avoiding deeply nested IF statements (Structured/Un-Structured)
Nov 9 01:08 2004 quick_tests.txt Return Code, Exit Status, ||, &&, test, and if
Nov 9 01:04 2004 script_checklist.txt Shell Script Checklist - a list of things to verify in your shell scripts
Nov 2 02:39 2004 labpractice1.txt Shell programming practice - Weather scripts
Nov 1 13:55 2004 command_substitution.txt Command Substitution - $(unix command)
Nov 1 13:08 2004 exit_status.txt Return Code, Exit Status, test, if, and while
Nov 1 12:39 2004 shell_read.txt Reading stdin into shell variables
Nov 1 12:27 2004 shell_variables.txt Shell Variables you should know (including $* and $@)
Nov 1 11:33 2004 umask.txt Umask and Permissions
Oct 24 16:03 2004 practiceCommands_2.txt Practice Unix/Linux Questions #2
Oct 12 00:00 2004 file_system.txt Unix/Linux File System - (correct explanation)
Oct 11 23:09 2004 shell_script_execution.txt How a Shell Script is "Executed"
Oct 11 22:28 2004 unix_permissions.txt Unix Permissions
Oct 11 21:57 2004 links_and_inodes.html Hard links and Unix file system nodes (inodes)
Sep 28 01:53 2004 week4answer.txt Week 4 in-lab exercise solution
Sep 23 14:28 2004 miscellaneous.txt Miscellaneous Unix Facts
Sep 23 13:12 2004 practiceCommands_1.txt Practice Unix/Linux Questions #1
Sep 21 06:44 2004 redirection.txt Unix Shell I/O Redirection (including Pipes)
Sep 20 23:13 2004 quotes.txt Unix/Linux Shell Command Line Quoting
Sep 20 14:01 2004 knoppix_booting.txt Using the Knoppix Linux CDROM
Sep 13 13:20 2004 acadunix_help.txt Using the ACADUNIX IBM Unix machine
Aug 30 04:01 2004 README.txt README - Index to this DAT2330 directory
Aug 30 04:01 2004 arguments_and_options.txt Options and Arguments on Unix Command Lines
Aug 30 04:01 2004 course_linux_server.txt The Course Linux Server
Aug 30 04:01 2004 file_transfer.txt File transfer between machines
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
Aug 30 04:01 2004 man_page_RTFM.txt Searching for items in the Unix manual pages (RTFM)
Aug 30 04:01 2004 pathnames.txt Unix/Linux Pathnames
Aug 30 04:01 2004 shell_prompt.txt Setting the BASH shell prompt
Aug 30 04:01 2004 startup_files.txt Setting up Startup Files: .profile and .bashrc
Aug 30 04:01 2004 telnet_usage.html Using Telnet/Ssh to Unix Systems
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