Question: Hi, I have the following shell script code in vi editor. For line 25, I can't get the date to print when I execute the

Hi, I have the following shell script code in vi editor. For line 25, I can't get the date to print when I execute the file. How should I remedy this?

Also, I've tried to fix as many errors as I can find. If there are any more, please let me know!

Hi, I have the following shell script code in vi editor. For

Here is a sample of the output once all errors are corrected:

Try to find out some errors!!! Wed Feb 21 19:59:01 EST 2018 The result has been sent to ylong4@student.gsu.edu Congratulations! You have corrected all the errors!

1 #!/bin/bash 2 3 #/-ENER Error Script */ 4 5 echo "Try to find out some errors!!!" 7 # Search for the words which can be matched by regex [^a]*ce 8 echo "The regex [a]*ce can match the string(s):" > enl 9 # And append matched stings to file "Result" 10 cat Result 21 22 # Show current system date 23 # And send the content in "Result" to your emailbox 24 # $1 is replaced by your campus!D 25 date maiL $(1 astudent.gsu.eduResult 32 55Ls replaced by your canpus to 28 START 29 echo "The result has been sent to $(1 @student.gsu.edu" 30 echo "Congratulations! You have corrected all the errors

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!