================================== Unix Lab 8 (Review for Final Exam) ================================== - Prepared by Ian Allen - idallen@ncf.ca Create a script that loops forever, doing the following: - clears the screen - displays a menu - prompts for an input selection - echoes the user's choice back to the screen - performs the indicated selected action - waits until the user types a carriage return to continue Here are the actions you should put into your menu script: 1) Run the date command. 2) Prompt for a pattern. Look for that pattern in the Unix password file and paginate any output produced. 3) Run the output of the "who" command through the "planG.sh" script from unixlab7.txt (last week). Select column order 2, 3, 1. 4) Look for the userid of the person running the script in all the files that are owned by this userid under the /tmp directory. (Hint: Save the output pathnames in a temporary file. Bring that list of pathnames into a second command line to look for the pattern.) 5) Exit the script with a return code of zero. Print a nice error message if the selection entered does not match any of the above actions.