Question: Storing Course Information Course information will be stored in text files. Assignment 1 : Shell Scripting Page 1 of 6 1 . Files will be

Storing Course Information Course information will be stored in text files.
Assignment 1: Shell Scripting
Page 1 of 6
1. Files will be stored inside a directory called data within the same directory as your script.
2. Each file will be named based on the combination of a department code and a course number, which consists of two or three letters followed by an integer with exactly four digits, followed by the extension .crs.
3. A course file consists of exactly these lines:
dept_code (two or three letter abbreviation) dept_name (string with probable whitespace)
course_name (string with probable whitespace)
course_sched (string consisting precisely of either MWF or TH) course_start (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 (e.g.,ESL English as a Second Language= dept_code =ESL, and dept_name =English as a Second Language)
4. Example file named esl3053.crs
Script Execution
When the script is run, the following should occur. All script output should appear exactly as it appears below.
1. Upon running your script, the user should be presented with the following menu:
Enter one of the following actions or press CTRL-D to exit.
C - create a new course record
R - read an existing course record
U - update an existing course record
D - delete an existing course record
E - update enrolled student count of existing course
T - show total course count
2. The user then enters a one-character action (upper or lowercase), leading to one of the following. C: a course is created
(a) From the terminal, read the following one at a time: i. Department code (two-to-three character string)
ii. Department name (string possibly containing whitespace) ESL English as a Second Language Literacy in a Second Language MWF 8/20/2412/13/24352

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!