Index of  dat2330/04w/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
   * Important Notes (chronological order)

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)

  Jan  6 05:43 2004  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
  Jan  6 05:43 2004  arguments_and_options.txt     Options and Arguments on Unix Command Lines
  Jan 17 01:39 2004  course_linux_server.txt     The Course Linux Server
  Feb 25 02:57 2004  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
  Jan 27 02:33 2004  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
  Jan  6 05:43 2004  how_to_print.txt     How to print from ACADUNIX
  Jan  6 05:43 2004  internet_basics.html     Internet Basics
  Jan  6 06:43 2004  knoppix_booting.txt     Using the Knoppix Linux CDROM
  Feb 25 02:59 2004  less_code.txt     Less Code is Better Code - stop cutting and pasting identical code
  Jan 24 01:37 2004  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
  Jan 16 05:47 2004  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
  Jan 17 13:29 2004  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
  Feb 16 03:48 2004  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 $@)
  Jan  6 05:43 2004  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

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.
  Feb 25 02:55 2004  file_size_classer.sh.txt     Classify a file as small, medium, large.
  Feb 25 02:55 2004  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.
  Feb 24 13:46 2004  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
  Feb 25 02:55 2004  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
  Feb 22 11:24 2004  showtest.sh.txt     Demonstrate the many uses of the built-in TEST command.
  Feb 25 02:55 2004  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.

C and C++ Programs

  Jan 16 08:05 2004  argv.c++.txt     Display the arguments on the command line.
  Jan 16 08:05 2004  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 / pdf,doc,wpd

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

Tests and Exams (with Answers)

  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  practiceTest2script.pdf     
  Mar  8 00:39 2004  practiceTest2script.ps     
  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     

Optional Material

  Mar 16 05:43 2004  opt_mainframe_linux.txt     IBM System/390: The Linux Dream Machine
  Mar 16 05:43 2004  opt_unix_vs_mainframe.txt     A UNIX Server Is NO Mainframe
  Jan  6 05:43 2004  opt_open_source.txt     E-Week Editorial - Software Independence
  Jan  6 05:43 2004  opt_open_source2.txt     E-Week Magazine explains Linux and Open Source
  Jan  6 05:43 2004  opt_why_shell.txt     Why Learn to program the Unix Shells?

Important Notes (chronological order)

  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 25 02:59 2004  less_code.txt     Less Code is Better Code - stop cutting and pasting identical code
  Feb 25 02:57 2004  deep_nesting.txt     Avoiding deeply nested IF statements (Structured/Un-Structured)
  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:48 2004  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 $@)
  Feb 16 03:30 2004  exit_status.txt     Return Code, Exit Status, test, if, and while
  Jan 27 02:33 2004  file_system.txt     Unix/Linux File System - (correct explanation)
  Jan 24 01:52 2004  practiceCommands_1.txt     Practice Unix/Linux Questions #1
  Jan 24 01:37 2004  links_and_inodes.html     Hard links and Unix file system nodes (inodes)
  Jan 17 13:29 2004  redirection.txt     Unix Shell I/O Redirection (including Pipes)
  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 16 05:47 2004  pathnames.txt     Unix/Linux Pathnames
  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
  Jan  6 05:43 2004  README.txt     README - Index to this DAT2330 directory
  Jan  6 05:43 2004  arguments_and_options.txt     Options and Arguments on Unix Command Lines
  Jan  6 05:43 2004  how_to_print.txt     How to print from ACADUNIX
  Jan  6 05:43 2004  internet_basics.html     Internet Basics
  Jan  6 05:43 2004  shells.txt     The Unix Shell