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.
Aug 24 00:00 2003README.txtREADME - Index to this DAT2330 directory Mar 22 03:18 2004abbreviations.txtMarking Code comment abbreviations Jan 6 05:45 2004acadunix_help.txtUsing the ACADUNIX IBM Unix machine Sep 3 03:20 2003arguments_and_options.txtOptions and Arguments on Unix Command Lines Jan 17 01:39 2004course_linux_server.txtThe Course Linux Server Oct 18 03:16 2003deep_nesting.txtAvoiding deeply nested IF statements (Structured/Un-Structured) Feb 16 03:30 2004exit_status.txtReturn Code, Exit Status, test, if, and while Feb 12 04:39 2011file_system.txtUnix/Linux File System - (correct explanation) Feb 28 08:44 2004file_transfer.txtFile transfer between machines Mar 11 13:46 2004final_test_hints.txtUnix/Linux Final Exam - hints for full marks Jan 9 13:02 2004home_and_HOME.txtDirectories: current, HOME, and /home Sep 3 02:36 2003how_to_print.txtHow to print from ACADUNIX Sep 3 04:00 2003internet_basics.htmlInternet Basics Jan 6 06:43 2004knoppix_booting.txtUsing the Knoppix Linux CDROM Oct 18 03:34 2003less_code.txtLess Code is Better Code - stop cutting and pasting identical code Oct 20 10:50 2005links_and_inodes.htmlHard links and Unix file system nodes (inodes) Jan 6 07:21 2004man_page_RTFM.txtSearching for items in the Unix manual pages (RTFM) Jan 13 09:55 2004miscellaneous.txtMiscellanous Unix Facts Sep 27 05:47 2011pathnames.txtUnix/Linux Pathnames Jan 24 01:52 2004practiceCommands_1.txtPractice Unix/Linux Questions #1 Mar 7 04:25 2004quick_tests.txtReturn Code, Exit Status, ||, &&, test, and if Jan 17 12:43 2004quotes.txtUnix/Linux Shell Command Line Quoting Feb 5 16:54 2011redirection.txtUnix Shell I/O Redirection (including Pipes) Feb 20 13:07 2004script_checklist.txtShell Script Checklist - a list of things to verify in your shell scripts Feb 25 11:56 2004script_practice1.txtPractice Script #1 Specifications Mar 7 02:58 2004script_style.txtShell Script Programming Conventions and Style Jan 9 12:42 2004shell_prompt.txtSetting the BASH shell prompt Mar 7 02:26 2004shell_read.txtReading stdin into shell variables Sep 30 01:50 2003shell_script_execution.txtHow a Shell Script is "Executed" Feb 16 03:39 2004shell_variables.txtShell Variables you should know (including $* and $@) Sep 3 02:53 2003shells.txtThe Unix Shell Jan 16 08:34 2004startup_files.txtSetting up Startup Files: .profile and .bashrc Mar 10 11:51 2004tarcompile.txtSpecifications: Extract and compile a C++ program contained in a tar archive Jan 9 23:00 2004telnet_usage.htmlUsing Telnet/Ssh to Unix Systems Mar 6 16:36 2004umask.txtUmask and Permissions Feb 22 16:31 2004unix_command_list.txtBasic Unix/Linux Command List Feb 16 04:26 2004unix_permissions.txtUnix Permissions Jan 9 12:22 2004vi_basics.txtThe VI (VIM) Editor - Basics
Projects/Labs/Assignments/Exercises (for hand-in)
Jan 16 08:20 2004exercise01.txtExercise #1 for DAT2330 due January 23 Feb 2 16:34 2004exercise01answers.txtExercise #1 sample Answers Jan 29 12:09 2004exercise02.txtExercise #2 for DAT2330 due February 3 Feb 6 01:19 2004exercise02commands.sh.txtExercise #2 sample Answer exercise02commands.sh Feb 6 00:29 2004exercise02weather.sh.txtExercise #2 sample Answer weather.sh Mar 28 13:22 2004exercise03.sh.txtunpack some tar archives containing image fragments and assemble a JPEG image Feb 26 12:50 2004exercise03.txtExercise #3 for DAT2330 due March 9 Mar 28 13:31 2004exercise03weather.sh.txtFetch the current temperature for a given airport city code Mar 24 18:46 2004exercise04.txtExercise #4 for DAT2330 due April 16
Shell Scripts
Jan 16 08:07 2004argv.sh.txtThis shell script displays the command line arguments. Oct 19 23:47 2003file_size_classer.sh.txtClassify a file as small, medium, large. Oct 23 02:53 2003grep_test.sh.txtTest to see if a string is in the online user list Feb 25 03:25 2004iftest1.sh.txtWe don't want the usual output of DIFF on the screen, so we throw it away. Feb 25 03:26 2004iftest2.sh.txtFor a list of numeric comparison operators, see the "test" man page. Feb 25 03:26 2004iftest3.sh.txtString comparison uses "=" not "-eq". Feb 25 03:26 2004iftest4.sh.txtSee the "test" man page for a larger list of file-testing operators. Feb 25 03:27 2004iftest5.sh.txtSyntax: $0 [filename] Feb 25 03:27 2004iftest6.sh.txtIssue an error message unless exactly one command line argument is given. Feb 25 03:27 2004iftest7.sh.txtPrint an error if the argument is missing, or is not a file. Feb 25 03:27 2004iftest8.sh.txtSpecifications: Feb 25 03:27 2004iftest9.sh.txtSpecifications: Feb 24 13:43 2004optional_args_if1.sh.txtDemonstrate method 1 for prompting for missing command line arguments. Feb 24 13:45 2004optional_args_if2.sh.txtDemonstrate method 2 for prompting for missing command line arguments. Oct 20 00:04 2003optional_args_if3.sh.txtDisplay PWD MAIL HOME replaced by optional command line arguments. Mar 7 19:04 2004passwd_string_finder.sh.txtSyntax: $0 [ string ] Oct 14 17:23 2003path_validator.sh.txtValidate a single command line argument (file or directory). Feb 25 03:18 2004script_practice1.sh.txtSample solution to script_practice1.txt Oct 14 17:06 2003showtest.sh.txtThis script runs in "debug" mode (see the -x above). Oct 14 17:19 2003sort_top_five.sh.txtThis scripts sorts a file and displays the top 5 lines. Feb 22 11:26 2004string_compare.sh.txtThis script compares two strings: an argument and stdin. Mar 10 11:30 2004tarcompile.sh.txtExtract and compile a C++ program contained in a tar archive Apr 9 02:10 2004while.sh.txtSyntax: $0 (no arguments) Feb 24 13:48 2004whoson.sh.txtIAN! idallen@idallen.ca
Program Source
Oct 3 12:10 2003argv.c++.txtIAN! idallen@idallen.ca Sep 15 14:50 2003argv.c.txtIAN! idallen@idallen.ca Jan 24 02:43 2004stdxxx.c++.txtProduces output on stdout and stderr, prompts and reads from stdin.