We will use the file classlist.txt. Note that it contains a list of usernames. 3. Write a script called finduser that is to be called as follows, where classlist is the name of the classlist file, and...


We will use the file classlist.txt. Note that it contains a list of usernames.<br>3.<br>Write a script called finduser that is to be called as follows, where classlist is the name of the classlist<br>file, and username is a particular student's username, either first name or last time.<br>./finduser classlist username<br>The script should<br>check that the correct number of arguments was received and print an error message if not,<br>check whether the classlist file exists and print an error message if not,<br>print the line of the given username in the classlist file<br>If you have not been doing so all along, you should now add some comments to your script and thoroughly<br>test it!<br>4.<br>Write the script into your lab report.<br>

Extracted text: We will use the file classlist.txt. Note that it contains a list of usernames. 3. Write a script called finduser that is to be called as follows, where classlist is the name of the classlist file, and username is a particular student's username, either first name or last time. ./finduser classlist username The script should check that the correct number of arguments was received and print an error message if not, check whether the classlist file exists and print an error message if not, print the line of the given username in the classlist file If you have not been doing so all along, you should now add some comments to your script and thoroughly test it! 4. Write the script into your lab report.

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here