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.
Nov 10 03:54 2004CGI_script.txtBuilding a CGI Script on Unix Mar 2 09:19 2005ClassRepREADME.htmlSubject: Class Representatives, 2004-2005 Aug 30 04:01 2004README.txtREADME - Index to this DAT2330 directory Dec 6 11:41 2004abbreviations.txtMarking Code comment abbreviations Sep 13 13:20 2004acadunix_help.txtUsing the ACADUNIX IBM Unix machine Aug 30 04:01 2004arguments_and_options.txtOptions and Arguments on Unix Command Lines Nov 1 13:55 2004command_substitution.txtCommand Substitution - $(unix command) Aug 30 04:01 2004course_linux_server.txtThe Course Linux Server Dec 12 22:27 2004datsubmit.txtUsing the datsubmit command Nov 9 01:21 2004deep_nesting.txtAvoiding deeply nested IF statements (Structured/Un-Structured) Nov 1 13:08 2004exit_status.txtReturn Code, Exit Status, test, if, and while Feb 12 04:39 2011file_system.txtUnix/Linux File System - (correct explanation) Aug 30 04:01 2004file_transfer.txtFile transfer between machines Dec 9 15:54 2004finaltest4directions.txtDirections and preparing for Test #4 (Final Exam) Aug 30 04:01 2004home_and_HOME.txtDirectories: current, HOME, and /home Aug 30 04:01 2004how_to_print.txtHow to print things in DAT2330 Aug 30 04:01 2004internet_basics.htmlInternet Basics Sep 20 14:01 2004knoppix_booting.txtUsing the Knoppix Linux CDROM Nov 2 02:39 2004labpractice1.txtShell programming practice - Weather scripts Dec 1 12:21 2004labpractice2.txtC Language and Makefile practice - Tetris game Nov 9 01:22 2004less_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) Aug 30 04:01 2004man_page_RTFM.txtSearching for items in the Unix manual pages (RTFM) Sep 23 14:28 2004miscellaneous.txtMiscellaneous Unix Facts Sep 27 05:47 2011pathnames.txtUnix/Linux Pathnames Sep 23 13:12 2004practiceCommands_1.txtPractice Unix/Linux Questions #1 Oct 24 16:03 2004practiceCommands_2.txtPractice Unix/Linux Questions #2 Nov 15 12:04 2004practiceCommands_3.txtPractice Unix/Linux Questions #3 Nov 9 01:08 2004quick_tests.txtReturn Code, Exit Status, ||, &&, test, and if Sep 20 23:13 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 Dec 9 11:51 2004script_practice2.txtPractice Script #2 Specifications Dec 9 11:49 2004script_practice2answer.txtTwo sample solutions to script_practice2.txt Dec 14 14:57 2004script_style.txtShell Script Programming Conventions and Style Aug 30 04:01 2004shell_prompt.txtSetting the BASH shell prompt Nov 1 12:39 2004shell_read.txtReading stdin into shell variables Oct 11 23:09 2004shell_script_execution.txtHow a Shell Script is "Executed" Nov 1 12:27 2004shell_variables.txtShell Variables you should know (including $* and $@) Aug 30 04:01 2004startup_files.txtSetting up Startup Files: .profile and .bashrc Jan 9 23:00 2004telnet_usage.htmlUsing Telnet/Ssh to Unix Systems Nov 1 11:33 2004umask.txtUmask and Permissions Dec 9 14:08 2004unix_command_list.txtBasic Unix/Linux Command List Oct 11 22:28 2004unix_permissions.txtUnix Permissions Aug 30 04:01 2004unix_shell.txtThe Unix/Linux Shell Aug 30 04:01 2004vi_basics.txtThe VI (VIM) Editor - Basics Sep 28 01:53 2004week4answer.txtWeek 4 in-lab exercise solution
Sep 20 23:18 2004argv.sh.txtThis shell script displays the command line arguments. Nov 22 20:18 2004cgi_answer.sh.txtsample answer for the CGI script exercise in CGI_script.txt Nov 4 19:39 2004commandline_arguments.sh.txtdemonstrate the use of command line arguments in a script Nov 15 11:47 2004elif.sh.txtSyntax: Oct 19 23:47 2003file_size_classer.sh.txtClassify a file as small, medium, large. 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 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. Nov 15 13:59 2004iftest8.sh.txtSpecifications: Nov 15 13:56 2004iftest9.sh.txtSpecifications: Nov 9 03:38 2004integer_sort.sh.txtread three integers and sort them Feb 24 13:43 2004optional_args1.sh.txtDemonstrate method 1 for prompting for missing command line arguments. Feb 24 13:45 2004optional_args2.sh.txtDemonstrate method 2 for prompting for missing command line arguments. Oct 20 00:04 2003optional_args3.sh.txtDisplay PWD MAIL HOME replaced by optional command line arguments. Feb 7 03:44 2005passwd_string_finder.sh.txtlook for an optional string in the Unix password file Nov 9 03:23 2004path_tester.sh.txtPerform several tests on the first argument to this script. Oct 14 17:23 2003path_validator.sh.txtValidate a single command line argument (file or directory). Nov 9 01:26 2004script_practice1.sh.txtSample solution to script_practice1.txt Nov 4 19:44 2004shellread.sh.txtdemonstrate the use of the shell "read" built-in command 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. Nov 15 13:40 2004wait_login.sh.txtSyntax: $0 userid Feb 7 03:52 2005weather1.sh.txtA weather script to show the current temperature in Ottawa (YOW) Feb 7 03:56 2005weather2.sh.txtA weather script to show the current temperature in Ottawa (YOW) Apr 9 02:10 2004while.sh.txtSyntax: $0 (no arguments) Nov 29 13:40 2004while2.sh.txtSyntax: $0 number Nov 9 03:42 2004whoson.sh.txtA shell script to display the users currently logged in.
Program Source
Sep 20 23:15 2004argv.c++.txtSave this program as: argv.c++ Sep 20 23:15 2004argv.c.txtSave this program as: argv.c Jan 24 02:43 2004stdxxx.c++.txtProduces output on stdout and stderr, prompts and reads from stdin.