阅读背景:

如何在脚本中包含和排除字符串

来源:互联网 

I would like to write a script to check the log , if any line in the log have the string in include_list.txt but do not have the string in exclude_list.txt , then send alert mail to administrator , as below example , the line 2 have the string "string 4" ( which is in include_list.txt ) but do not have anything in exclude_list.txt , then display line 1 only in alert mail .I would like to write a script to check the log




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: