Question: UNIX 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/* Chock Error
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/* Chock Error Script */echo *Try to find out some errors !!!* # Search for the words which can be matched by regex [^a]*ce # And save the output to file "Result" echo "The regex [^a[*ce can match the string(s):* > Result grep '^[^a] *ce$' > Result lance ace brace decide piece -ENDHERE # Check the existence of file "Result" # Send the content in "Result" to your emailbox # $1 is replaced by your campusID. 1s mail $1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
