We are not going to do your homework......
But, before anyone can help you, you will need to get someone to help you with the English. For example, this is impossible to understand:
My supervisor remind me to should shell script to make break about the log contain
I **think** you are using "contains" when you mean "contents". Assuming that's true, then the code you show is not doing anything with the contents of a log---it is simply getting the value of the variable "alert".