Question: For this assignment, you will use bash to create a simple course catalog for administrators to update the details of each course offered by their
For this assignment, you will use bash to 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.
Course information will be stored in text files.
Files will be stored inside a directory called data within the same directory as your script.
Each file will be named based on the combination of a department code and a course number,
Assignment : Shell Scripting
Which consists of two or three letters followed by an integer with exactly four digits, followed
by the extension crs notice that the text file does not end in txt Does that need to be
accounted for?
A course file consists of exactly five lines:
deptcode two or three letter abbreviation deptname string with probable whitespace
coursename string with probable whitespace
coursesched string consisting precisely of either MWF or TH coursestart string with no whitespace course end string with no whitespace
course hours credit hours, unsigned integer
course size enrolled students, unsigned integer
Department names may contain whitespace. You should account for names with multiple tokens egESL English as a Second Language deptcode ESL and deptname English as a Second Language
Example file named eslcrs
Your program should consist of seven bash files with the following names case sensitive:
assignbash the main file which is initially invoked
create.bash logic for the create option
read.bash logic for the read option
update.bash logic for the update option
delete.bash logic for the delete option
enroll.bash logic for the enrollment option
total.bash logic for the total option
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
