Question: Step 1: Create a new file named as checkError.sh (vi checkError.sh or nano checkError.sh), then include following lines in your checkError.sh. # . /bin/bash //


Step 1: Create a new file named as checkError.sh (vi checkError.sh or nano checkError.sh), then include following lines in your checkError.sh. # . /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 Result absence lance brace decide piece 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 ID date , mail $1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
