================================= Practice Script #1 Specifications ================================= See script_practice1.sh.txt for a sample solution. Shell Script - Points: 53 On the Course Linux server: Write an executable shell script named script_practice1.sh that will do the following actions (in the order given below): 1. [Points: 4] Start your executable script with a correct NET2003 script header. 2. [Points: 7] Issue a good error message (follow the NET2003 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 -