========================================== Unix Lab 2 (Preparation for Assignment #4) ========================================== - Prepared by Ian Allen - idallen@ncf.ca Log in to ACADAIX. You need to have worked through the Unix text up to approximately page 112. At that point you will know enough VI to enter a few lines of text. I) Use VI to create the following shell script in your account on ACADAIX: 1) The first line must contain the name of the program used to interpret the shell script: #!/bin/sh -u 2) The next line is a comment that contains your name and email address. 3) The next line shows the current date. 4) The next line displays the lines from the manual page for "man" that contain the characters "PAGER". The four-line script will look similar to this: #!/bin/sh -u # Ian Allen idallen@ncf.ca date man man | grep 'PAGER' Use VI to create this script. Name the script "myscript". Exit VI. II) Execute the shell script. 1) Method 1: Use the shell to read and execute the shell script. $ sh myscript ...see script output here... 2) Method 2: Make the script itself executable. $ chmod +x myscript $ ./myscript ...see script output here... III) Write your name on the sheet at the front of the room when you have the script working. The instructor will try to get around to see demonstrations from everyone.