Answered step by step
Verified Expert Solution
Link Copied!

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 (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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago