Question: Linux Program 2 Write a bash script that will carry out the following in order: 1. Display a general message about the function and expected
Linux Program 2 Write a bash script that will carry out the following in order: 1. Display a general message about the function and expected input required for the script. 2. Display request for name of input file and input as requested. 3. Display in order messages to input First Name, then Middle Initial, then Last Name, and Date of Birth along with input of each (composing a record). 4. Output a copy of each record to the screen as well as to a file whose name was input from the keyboard. 5. Ask the user if they have another record to enter; if so return to 3, if not to 6 6. Sort the input file on last name and write the sorted listing to a second file who name is simply "sortedoutput" 7. To the screen, provide a listing of the contents of "sortedoutput" using the cat command. To the screen, indicate the number of lines, words and characters in the sorted output file. 8. Certainly you will need to make use of the following Linux commands: echo, read, do, sort, wc, chmod, vi to name a few. You may wish to make the foreground and background colors vivid and readable using the setterm command. A flowchart with the following symbols could be used to capture the control flow of the preceding assignment. Symbol An ovieal represents a stant ched shell scripting assignment. Submit your results and a copy of your Linux com n print on a word, power point, PDF file, or you can submit as a.txt file similar to the e details of the programming assignment are contained in the week 14 module
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
