These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

UNIX01/Create A Simple Shell Script

Classnotes | UNIX01 | RecentChanges | Preferences

Create a shell script that ensures the directory permissions are set correctly on the first Project we did today ([UNIX01/Create A Simple Tree]). Do not worry about ownership, just permissions.

Save this shell script as "treereset.sh". Modify the permissions on the tree and run the file to ensure it resets them back.


Create two more shell scripts, call one "lspr" and one "lssales".

"lspr" should search through a database given at the command line and print out only those people who are in the PR group (it should do so in a case-insensitive way).

"lssales" should search through a database given at the command line and print out only those people who are in the Sales group (again, it should do so in a case-insensitive way).

Run these files on "ody_employees.dat" and verify that they produce the correct output.



Classnotes | UNIX01 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited July 19, 2003 2:51 am (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.