Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Bin Bash Check Error Script Echo Try Find Errors Seach Words Matched Regex Ce Echo Regex Q35612514

# . /bin/bash // Check Error Script echo Try to find out some errors!!! # Seach for the words which can be matched by regexCan you find some errors when executing the command in step 4? If yes, please point out which lines contain errors and how to

# . /bin/bash // Check Error Script echo “Try to find out some errors!!!” # Seach for the words which can be matched by regex [a] .*ce echo “The regex [a].*ce can match the string (s)Result # And append matched strings to file “Result” cat << START I grep ‘[a] .*ceş’> Result ice absence lance ace brace decide plece END | # Then append the output of command simple. sh to file “Result” ./simple.sh Result # Show current system date # And send the content in “Result” to your emailbox # $1 is replaced by your campus!D date , таії $1 < Result # $1 is replaced by your campus!D echo ‘The result has been sent to $11@student.gsu.edu’ echo “Congratulations! You have corrected all the errors!” Can you find some errors when executing the command in step 4? If yes, please point out which lines contain errors and how to correct them. Note: please do not add new lines into checkError.sh. For example, there is an error in first line, then write down your answer as Line #1 Add ! before / Hints ‘Following is a sample of the output once all the errors are corrected. ş ./checkError.sh ylong4 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! Show transcribed image text # . /bin/bash // Check Error Script echo “Try to find out some errors!!!” # Seach for the words which can be matched by regex [a] .*ce echo “The regex [a].*ce can match the string (s)Result # And append matched strings to file “Result” cat

Leave a Reply

Your email address will not be published. Required fields are marked *