Assignment #1 The following exercises are to be completed in an electronic file and then mailed to lingras using pine (do not attach). Use the 'script' command to record your terminal session for each question and then edit the resulting file (using vi, ed or pico) to 'annotate' the file showing which part is for question 1, etc. (use man script for more information on how to use script) Note: The annotation can also be done by using comment lines $# This is a comment line You should also show the results of redirecting output into a file by using 'cat filename' to display the contents. Caution: Remember to rename the typescript file created by one session of using script before you start another script session. Another possibility is to specify the name of the output file as argument to the typescript command. 1) Create a header file to be used for assignments by combining the ECHO command and redirection. ECHO Assignment \#2 for COSC 2904 > assignhdr ECHO Submitted by Your Name >> assignhdr ECHO Date yy/mm/dd >> assignhdr Use cp to make a copy of this called assign2 and do a ls to show you have both files on your account. The script sessions for all questions are to be included in the assign2 file. 2) Exercises from Kernighan & Pike 1-4 page 29 1-5 page 31 1-6 page 31 3) Set the PATH variable to an empty string and attempt a few commands including echo, type, grep, and ls. Explain why each of the commands worked or failed. Restore PATH variable to the original value. 4) Create a shell variable called USERNAME containing your full name including spaces and place it in the environment. Redirect the output of the set command to the assignment file to show the result and also ECHO the variable with redirection to the assignment file. Reminder: Be sure you have properly annotated the file to show which question and what commands were used to generate any results sent to the file using redirection.