Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started