Create an hw11 directory in your hw
directory inside your it244 directory.
Using the Unix editor of your choice, create the scripts
in your hw11 directory.
Remember to create a hashbang line at the top and to include
a comment describing what the script does.
Be sure to make this file executable in the manner
I described in class.
If the script must have some number of arguments, make sure you test for the proper number of arguments.
If the script does not get the correct number of arguments, it should print a usage message and quit.
If you do not have a hashbang line, do not have a comment
describing what the script does, do not make it properly
executable, or fail to check for arguments and provide a usage message, points will be deducted.
$ cat users.log Wed Dec 5 10:38:58 EST 2012 ----------------- Login Name Tty Idle Login Time Office Office Phone cs110ck Dummy for Chris Kelly pts/0 Dec 5 10:29 (dsl092-066-161.bos1.dsl.speakeasy.net) Wed Dec 5 10:39:06 EST 2012 ----------------- Login Name Tty Idle Login Time Office Office Phone cs110ck Dummy for Chris Kelly pts/0 Dec 5 10:29 (dsl092-066-161.bos1.dsl.speakeasy.net)Be sure to test this script several times to make sure it works.
./envir.sh SSHBe sure to test this script several times to make sure it works.