Question: Now write another script fin 2 . sh . This script does not accept command line options or parameters. Instead it prompts and reads

Now write another script "fin2.sh". This script does not accept command line options or parameters. Instead it prompts and reads user input from stdin. Proper use of the read command is expected. "fin2.sh" needs to accept an additional option "q". The script should repeatedly prompt the user to choose one option to run. Once the user types "q", "fin2.sh" should stop and exit. The other acceptable options in "fin2.sh" are "e","f" and "h", which are exactly the same as those in "fin1.sh" and call the appropriate 10.5 lab script. For any unrecognized option value, print an error message.
Note: "fin2.sh" may needs to have a completely different way to take inputs. Instead of taking options and parameters from the command line, prompt the user for these values using appropriate commands.
Be sure to upload an executable ASCII file. Screenshots will not be accepted.

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!