================================= Practice Script #1 Specifications ================================= See labweek8.sh.txt for a sample solution. Shell Script - Points: 51 On the IDAllen Linux machine: Write an executable shell script named labweek8.sh that will do the following actions (in the order given below): 1. [Points: 2] Start your script with a correct DAT2330 script header. 2. [Points: 7] Issue a good error message (follow the DAT2330 guidelines) and exit the script with status 1 if there is more than one command line argument. 3. [Points: 4] If there are no command line arguments, put the Unix password file name into a variable named file; otherwise, put the (only) command line argument into variable file. 4. [Points: 6] Make sure the pathname in variable file is a plain file; otherwise, issue a good error message and exit the script with status 2. 5. [Points: 6] Make sure the file whose name is in variable file is readable; otherwise, issue a good error message and exit the script with status 3. 6. [Points: 6] Make sure the file whose name is in variable file is not empty (has a size larger than zero); otherwise, issue a good error message and exit the script with status 4. 7. [Points: 3] Put only the count of characters in the file named by the file variable into a new variable named count. 8. [Points: 7] Do the two actions in this step only if the number you just put in variable count is greater than ten: (1) Print this message on standard output: File 'XXX' contains YYY characters (more than 10) where the item XXX is actually the name of the file and YYY is actually the count of characters in the file. (Print the actual name and numbers; do not print the letters XXX or YYY!) (2) Exit the script with status 6. 9. [Points: 7] Put your 8-character Algonquin userid into a variable named out. If a pathname with this name (your userid) does not exist in the current directory, print a good error message and exit the script with status 7. 10. [Points: 3] Append the following single line to the existing file named by the out variable: File 'XXX' contains YYY characters (Print the actual name and numbers; do not print the letters XXX or YYY!) - FIN -