我有一个脚本A,它调用脚本B,脚本B写入日志文件。脚本A多次调用脚本B,每次脚本B执行时,它都会写入带有日期时间戳的日志文件。我想在两个连续的日期范围之间GREP“成功”或“失败”:
2013 May 08 12:33:51 Warning Info blah blah blah Success 2013 May 08 12:35:15 Warning Info blah blah blah Failure 2013 May 08 12:35:15 Warning Info blah blah blah Unknown 2013 May 08 12:39:15 Warning Info blah blah blah Success 2013 May 08 12:41:15 Warning Info blah blah blah Failure