Starting from:

$29.99

CSC3320 Lab 6 - Part 1 - In-Lab Solution

rpose: Learn how to correct a shell script and write more complicated shell scripts.
Part 1:
In order to finish the tasks in this lab, you must connect to snowball server to copy my checkError.sh $cp /home/yye10/public/checkError.sh checkError.sh
Line #: Error: Correction:
Note: please use cat -n to check the line numbers.

Hints:
• Following is a sample of the output once all the errors are corrected $ ./checkError.sh ylong4
Try to find out some errors!!!
checkError.sh Result
The result has been sent to ylong4@student.gsu.edu
Congratulations! You have corrected all the errors!
• You would also receive an email sent from your snowball account once all the errors are corrected.
Part 2:
Write a single shell script hello.sh which can finish the list of tasks as below:

Include the content of hello.sh in your answer sheet. Besides, please also upload hello.sh as a separated file.
Upload your answer sheet to the folder named “Lab 6_P1” of the dropbox in the iCollege system. Name your file in the format of Lab6_P1_FirstnameLastname.pdf/doc
Hints:
• When printing out strings using echo, to escape the special meaning of the meta character, please use back slash before the meta-character.
• To share files between remote server and the host machine, we can use FileZilla - A FREE FTP. The link to download this application is https://filezilla project.org/download.php

More products