Index of dat2330/04w/notes

 

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

  Jan 10 14:25 2004  week01notes.txt    Week 1 Notes for DAT2330
  Mar  6 14:11 2004  week02notes.txt    Week 2 Notes for DAT2330
  Mar  6 14:15 2004  week03notes.txt    Week 3 Notes for DAT2330
  Feb  2 15:16 2004  week04notes.txt    Week 4 Notes for DAT2330
  Mar  6 15:59 2004  week05notes.txt    Week 5 Notes for DAT2330
  Mar  7 19:39 2004  week06notes.txt    Week 6 Notes for DAT2330
  Mar  7 19:37 2004  week07notes.txt    Week 7 Notes for DAT2330
  Mar  7 19:36 2004  week08notes.txt    Week 8 Notes for DAT2330
  Mar  9 02:30 2004  week09notes.txt    Week 9 Notes for DAT2330

Important Notes (alphabetical order)

  Aug 24 00:00 2003  README.txt    README - Index to this DAT2330 directory
  Mar 22 03:18 2004  abbreviations.txt    Marking Code comment abbreviations
  Jan  6 05:45 2004  acadunix_help.txt    Using the ACADUNIX IBM Unix machine
  Sep  3 03:20 2003  arguments_and_options.txt    Options and Arguments on Unix Command Lines
  Jan 17 01:39 2004  course_linux_server.txt    The Course Linux Server
  Oct 18 03:16 2003  deep_nesting.txt    Avoiding deeply nested IF statements (Structured/Un-Structured)
  Feb 16 03:30 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)
  Feb 28 08:44 2004  file_transfer.txt    File transfer between machines
  Mar 11 13:46 2004  final_test_hints.txt    Unix/Linux Final Exam - hints for full marks
  Jan  9 13:02 2004  home_and_HOME.txt    Directories: current, HOME, and /home
  Sep  3 02:36 2003  how_to_print.txt    How to print from ACADUNIX
  Sep  3 04:00 2003  internet_basics.html    Internet Basics
  Jan  6 06:43 2004  knoppix_booting.txt    Using the Knoppix Linux CDROM
  Oct 18 03:34 2003  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)
  Jan  6 07:21 2004  man_page_RTFM.txt    Searching for items in the Unix manual pages (RTFM)
  Jan 13 09:55 2004  miscellaneous.txt    Miscellanous Unix Facts
  Sep 27 05:47 2011  pathnames.txt    Unix/Linux Pathnames
  Jan 24 01:52 2004  practiceCommands_1.txt    Practice Unix/Linux Questions #1
  Mar  7 04:25 2004  quick_tests.txt    Return Code, Exit Status, ||, &&, test, and if
  Jan 17 12:43 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
  Feb 25 11:56 2004  script_practice1.txt    Practice Script #1 Specifications
  Mar  7 02:58 2004  script_style.txt    Shell Script Programming Conventions and Style
  Jan  9 12:42 2004  shell_prompt.txt    Setting the BASH shell prompt
  Mar  7 02:26 2004  shell_read.txt    Reading stdin into shell variables
  Sep 30 01:50 2003  shell_script_execution.txt    How a Shell Script is "Executed"
  Feb 16 03:39 2004  shell_variables.txt    Shell Variables you should know (including $* and $@)
  Sep  3 02:53 2003  shells.txt    The Unix Shell
  Jan 16 08:34 2004  startup_files.txt    Setting up Startup Files: .profile and .bashrc
  Mar 10 11:51 2004  tarcompile.txt    Specifications: Extract and compile a C++ program contained in a tar archive
  Jan  9 11:41 2004  telnet_usage.html    Using Telnet/Ssh to Unix Systems
  Mar  6 16:36 2004  umask.txt    Umask and Permissions
  Feb 22 16:31 2004  unix_command_list.txt    Basic Unix/Linux Command List
  Feb 16 04:26 2004  unix_permissions.txt    Unix Permissions
  Jan  9 12:22 2004  vi_basics.txt    The VI (VIM) Editor - Basics

Projects/Labs/Assignments/Exercises

  Jan 16 08:20 2004  exercise01.txt    Exercise #1 for DAT2330 due January 23
  Feb  2 16:34 2004  exercise01answers.txt    Exercise #1 sample Answers
  Jan 29 12:09 2004  exercise02.txt    Exercise #2 for DAT2330 due February 3
  Feb  6 01:19 2004  exercise02commands.sh.txt    Exercise #2 sample Answer exercise02commands.sh
  Feb  6 00:29 2004  exercise02weather.sh.txt    Exercise #2 sample Answer weather.sh
  Mar 28 13:22 2004  exercise03.sh.txt    unpack some tar archives containing image fragments and assemble a JPEG image
  Feb 26 12:50 2004  exercise03.txt    Exercise #3 for DAT2330 due March 9
  Mar 28 13:31 2004  exercise03weather.sh.txt    Fetch the current temperature for a given airport city code
  Mar 24 18:46 2004  exercise04.txt    Exercise #4 for DAT2330 due April 16

Shell Scripts

  Jan 16 08:07 2004  argv.sh.txt    This shell script displays the command line arguments.
  Oct 19 23:47 2003  file_size_classer.sh.txt    Classify a file as small, medium, large.
  Oct 23 02:53 2003  grep_test.sh.txt    Test to see if a string is in the online user list
  Feb 25 03:25 2004  iftest1.sh.txt    Compare two files in an IF statement, checking the return status of DIFF.
  Feb 25 03:26 2004  iftest2.sh.txt    Demonstrate the TEST command in an IF statement (numeric test).
  Feb 25 03:26 2004  iftest3.sh.txt    Demonstrate the TEST command in an IF statement (string tests).
  Feb 25 03:26 2004  iftest4.sh.txt    File-testing operations by the TEST command in an IF statement.
  Feb 25 03:27 2004  iftest5.sh.txt    Perform several tests on the first argument to this script.
  Feb 25 03:27 2004  iftest6.sh.txt    If the script has one argument, tell whether it is exists and is readable.
  Feb 25 03:27 2004  iftest7.sh.txt    Count the number of lines in the first file name argument.
  Feb 25 03:27 2004  iftest8.sh.txt    A "backup" script - Structured Programming Version (one entry / one exit).
  Feb 25 03:27 2004  iftest9.sh.txt    A "backup" script - Non-Structured Programming Version (many exits).
  Feb 24 13:43 2004  optional_args_if1.sh.txt    Demonstrate method 1 for prompting for missing command line arguments.
  Feb 24 13:45 2004  optional_args_if2.sh.txt    Demonstrate method 2 for prompting for missing command line arguments.
  Oct 20 00:04 2003  optional_args_if3.sh.txt    Display PWD MAIL HOME replaced by optional command line arguments.
  Mar  7 19:04 2004  passwd_string_finder.sh.txt    Week 8 lab script - look for an optional string in Unix password file
  Oct 14 17:23 2003  path_validator.sh.txt    Validate a single command line argument (file or directory).
  Feb 25 03:18 2004  script_practice1.sh.txt    Sample solution to script_practice1.txt
  Oct 14 17:06 2003  showtest.sh.txt    Demonstrate the many uses of the built-in TEST command.
  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.
  Mar 10 11:30 2004  tarcompile.sh.txt    Extract and compile a C++ program contained in a tar archive
  Apr  9 02:10 2004  while.sh.txt    Demonstrate a "while" loop, "read", "exec", and "let"
  Feb 24 13:48 2004  whoson.sh.txt    A shell script to display the users currently logged in.

Program Source

  Oct  3 12:10 2003  argv.c++.txt    Display the arguments on the command line.
  Sep 15 14:50 2003  argv.c.txt    Display the arguments on the command line.
  Jan 24 02:43 2004  stdxxx.c++.txt    Produces output on stdout and stderr, prompts and reads from stdin.

Course Outline

  Jan  9 11:46 2004  dat2330_04w_course_outline.pdf    

Miscellaneous

  Sep  6 01:49 2003  Class Rep Form.pdf    
  Sep  6 01:49 2003  Class Rep Job Description.wpd    
  Mar  4 14:13 2004  nonchristian2004.pdf    

Quizzes, Tests, and Exams

  Mar 21 09:45 2004  termTest2scriptB.sh.txt    Sample solution to Unix Final Script (neat version)
  Mar 21 09:45 2004  termTest2scriptA.sh.txt    Sample solution to Unix Final Script (sloppy version)
  Mar 16 14:23 2004  termTest2script.pdf    
  Mar 16 14:23 2004  termTest2script.ps    
  Mar 16 14:23 2004  termTest2script.txt    Unix Test #2
  Mar 16 13:39 2004  termTest2.pdf    
  Mar 16 13:39 2004  termTest2.txt    Unix Test #2
  Mar 16 13:39 2004  termTest2.ps    
  Mar  8 00:44 2004  practiceTest2scriptA.sh.txt    Sample solution to the Practice Test Script (sloppy version)
  Mar  8 00:44 2004  practiceTest2scriptB.sh.txt    Sample solution to the Practice Test Script (neat version)
  Mar  8 00:43 2004  practiceTest2script.txt    Practice Test Script
  Mar  8 00:39 2004  practiceTest2.txt    Practice Test
  Mar  8 00:39 2004  practiceTest2.pdf    
  Mar  8 00:39 2004  practiceTest2.ps    
  Feb 16 12:57 2004  termTest1.pdf    
  Feb 16 12:57 2004  termTest1.txt    Unix Test #1
  Feb 16 12:57 2004  termTest1.ps    
  Jan 24 01:24 2004  practiceTest1.txt    Practice Test
  Jan 24 01:24 2004  practiceTest1.pdf    
  Jan 24 01:24 2004  practiceTest1.ps    
  Nov  3 12:41 2003  practiceTest2script.pdf    
  Oct 27 14:20 2003  practiceTest2script.ps    

Optional Material

  Jan 27 12:38 2003  opt_open_source2.txt    E-Week Magazine explains Linux and Open Source
  Jan  6 03:10 2003  opt_mainframe_linux.txt    IBM System/390: The Linux Dream Machine
  Jan  6 03:10 2003  opt_why_shell.txt    Why Learn to program the Unix Shells?
  Dec 28 03:05 2001  opt_unix_vs_mainframe.txt    A UNIX Server Is NO Mainframe
  Jul 15 00:56 2001  opt_open_source.txt    E-Week Editorial - Software Independence

Important Notes (chronological order)

  Sep 27 05:47 2011  pathnames.txt    Unix/Linux Pathnames
  Feb 12 04:39 2011  file_system.txt    Unix/Linux File System - (correct explanation)
  Feb  5 16:54 2011  redirection.txt    Unix Shell I/O Redirection (including Pipes)
  Oct 20 10:50 2005  links_and_inodes.html    Hard links and Unix file system nodes (inodes)
  Mar 22 03:18 2004  abbreviations.txt    Marking Code comment abbreviations
  Mar 11 13:46 2004  final_test_hints.txt    Unix/Linux Final Exam - hints for full marks
  Mar 10 11:51 2004  tarcompile.txt    Specifications: Extract and compile a C++ program contained in a tar archive
  Mar  7 04:25 2004  quick_tests.txt    Return Code, Exit Status, ||, &&, test, and if
  Mar  7 02:58 2004  script_style.txt    Shell Script Programming Conventions and Style
  Mar  7 02:26 2004  shell_read.txt    Reading stdin into shell variables
  Mar  6 16:36 2004  umask.txt    Umask and Permissions
  Feb 28 08:44 2004  file_transfer.txt    File transfer between machines
  Feb 25 11:56 2004  script_practice1.txt    Practice Script #1 Specifications
  Feb 22 16:31 2004  unix_command_list.txt    Basic Unix/Linux Command List
  Feb 20 13:07 2004  script_checklist.txt    Shell Script Checklist - a list of things to verify in your shell scripts
  Feb 16 04:26 2004  unix_permissions.txt    Unix Permissions
  Feb 16 03:39 2004  shell_variables.txt    Shell Variables you should know (including $* and $@)
  Feb 16 03:30 2004  exit_status.txt    Return Code, Exit Status, test, if, and while
  Jan 24 01:52 2004  practiceCommands_1.txt    Practice Unix/Linux Questions #1
  Jan 17 12:43 2004  quotes.txt    Unix/Linux Shell Command Line Quoting
  Jan 17 01:39 2004  course_linux_server.txt    The Course Linux Server
  Jan 16 08:34 2004  startup_files.txt    Setting up Startup Files: .profile and .bashrc
  Jan 13 09:55 2004  miscellaneous.txt    Miscellanous Unix Facts
  Jan  9 13:02 2004  home_and_HOME.txt    Directories: current, HOME, and /home
  Jan  9 12:42 2004  shell_prompt.txt    Setting the BASH shell prompt
  Jan  9 12:22 2004  vi_basics.txt    The VI (VIM) Editor - Basics
  Jan  9 11:41 2004  telnet_usage.html    Using Telnet/Ssh to Unix Systems
  Jan  6 07:21 2004  man_page_RTFM.txt    Searching for items in the Unix manual pages (RTFM)
  Jan  6 06:43 2004  knoppix_booting.txt    Using the Knoppix Linux CDROM
  Jan  6 05:45 2004  acadunix_help.txt    Using the ACADUNIX IBM Unix machine
  Oct 18 03:34 2003  less_code.txt    Less Code is Better Code - stop cutting and pasting identical code
  Oct 18 03:16 2003  deep_nesting.txt    Avoiding deeply nested IF statements (Structured/Un-Structured)
  Sep 30 01:50 2003  shell_script_execution.txt    How a Shell Script is "Executed"
  Sep  3 04:00 2003  internet_basics.html    Internet Basics
  Sep  3 03:20 2003  arguments_and_options.txt    Options and Arguments on Unix Command Lines
  Sep  3 02:53 2003  shells.txt    The Unix Shell
  Sep  3 02:36 2003  how_to_print.txt    How to print from ACADUNIX
  Aug 24 00:00 2003  README.txt    README - Index to this DAT2330 directory
-- 
| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/