Question: For this assignment, you will use bash create a simple course catalog for administrators to update the details of each course offered by their department.

For this assignment, you will use bash create a simple course catalog for administrators to update the
details of each course offered by their department. The system will store basic information about each
course, allowing the user to create, read, update, and delete them.
This assignment requires only the utilities used so far in the lecture notes. **Do not use sed, awk!!**
D: delete an existing course
(a) Prompt the user for a string representing the course department and number (e.g.,cs
3424):
Enter a course department code and number:
(b) Delete the specified courses file.
(c) Update data/queries.log by adding the following line:
[date ] DELETED: dept_code course_num course_name
where date is the output from the date command and dept_code, course_num, and
course_name are the corresponding values.
(d) Print the following message to stdout with the courses number:
course number was successfully deleted.
(e) If the course is not found, print the following error instead and continue with the script.
ERROR: course not found
 For this assignment, you will use bash create a simple course

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!