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 Nov 3 12:35 2003abbreviations.txtMarking Code comment abbreviations Aug 27 15:06 2003acadunix_help.txtUsing the ACADUNIX IBM Unix machine Sep 3 03:20 2003arguments_and_options.txtOptions and Arguments on Unix Command Lines Oct 3 14:30 2003course_linux_server.txtFile transfer to/from the Course Linux Server Oct 18 03:16 2003deep_nesting.txtAvoiding deeply nested IF statements (Structured/Un-Structured) Oct 25 14:38 2003exit_status.txtReturn Code, Exit Status, test, if, and while Feb 12 04:39 2011file_system.txtUnix/Linux File System - (correct explanation) Oct 24 02:05 2003file_transfer.txtFile transfer between machines Sep 3 03:44 2003home_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 Sep 18 03:47 2003knoppix_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) Sep 3 02:36 2003man_page_RTFM.txtSearching for items in the Unix manual pages (RTFM) Sep 3 06:06 2003miscellaneous.txtMiscellanous Unix Facts Aug 25 14:14 2003os_intro.txtNotes on Assessing an Operating System Aug 25 14:15 2003os_intro_points.txtSummary Slide for O/S Introduction Sep 27 05:47 2011pathnames.txtUnix/Linux Pathnames Sep 18 03:02 2003practiceCommands_1.txtPractice Unix/Linux Questions #1 Oct 18 03:42 2003quick_tests.txtReturn Code, Exit Status, ||, &&, test, and if Sep 3 03:19 2003quotes.txtUnix/Linux Shell Command Line Quoting Feb 5 16:54 2011redirection.txtUnix Shell I/O Redirection (including Pipes) Sep 16 21:47 2003redirection2.txtUnix Shell I/O Redirection - Part II Oct 18 03:21 2003script_checklist.txtShell Script Checklist - a list of things to verify in your shell scripts Oct 17 22:34 2003script_practice1.txtPractice Script #1 Specifications Oct 18 03:31 2003script_style.txtShell Script Programming Conventions and Style Oct 4 01:26 2003shell_prompt.txtSetting the BASH shell prompt Oct 18 12:07 2003shell_read.txtReading stdin into shell variables Sep 30 01:50 2003shell_script_execution.txtHow a Shell Script is "Executed" Oct 20 11:59 2003shell_variables.txtShell Variables you should know (including $* and $@) Sep 3 02:53 2003shells.txtThe Unix Shell Sep 3 04:07 2003startup_files.txtSetting up Startup Files: .profile and .bashrc Oct 6 14:27 2003tar_GNU_and_not.txtACADUNIX tar commands (GNU and not-GNU) Aug 27 18:03 2003telnet_usage.htmlUsing Telnet/Ssh to Unix Systems Sep 16 16:33 2003tutoring.txtSubject: Notice to ATC profs re. Tutoring Services Sep 15 12:58 2003umask.txtUmask and Permissions Sep 29 23:53 2003unix_permissions.txtUnix Permissions Aug 27 17:00 2003vi_basics.txtThe VI (VIM) Editor - Basics
Jan 6 03:10 2003argv.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 Oct 14 16:27 2003iftest1.sh.txtWe don't want the usual output of DIFF on the screen, so we throw it away. Oct 14 16:33 2003iftest2.sh.txtFor a list of numeric comparison operators, see the "test" man page. Oct 14 16:36 2003iftest3.sh.txtString comparison uses "=" not "-eq". Oct 14 16:45 2003iftest4.sh.txtSee the "test" man page for a larger list of file-testing operators. Oct 14 16:53 2003iftest5.sh.txtIf no arguments, do the tests on /etc/passwd instead. Oct 14 16:55 2003iftest6.sh.txtIssue an error message unless exactly one command line argument is given. Oct 14 17:02 2003iftest7.sh.txtPrint an error if the argument is missing, or is not a file. Oct 14 17:04 2003iftest8.sh.txtSpecifications: Oct 14 17:04 2003iftest9.sh.txtSpecifications: Oct 24 14:08 2003labweek8.sh.txtSample solution to Exercise #7 (script_practice1.txt) Oct 20 00:33 2003optional_args_if1.sh.txtDemonstrate method 1 for prompting for missing command line arguments. Oct 20 00:35 2003optional_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. Oct 14 17:23 2003path_validator.sh.txtValidate a single command line argument (file or directory). 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. Oct 19 23:38 2003string_compare.sh.txtThis script compares two strings: an argument and stdin. Sep 15 13:01 2003whoson.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 Oct 3 12:10 2003stdxxx.c++.txtIAN! idallen@idallen.ca