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 egcs
:
Enter a course department code and number:
b Delete the specified courses file.
c Update dataquerieslog by adding the following line:
date DELETED: deptcode coursenum coursename
where date is the output from the date command and deptcode, coursenum, and
coursename 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
