注意: 2020-03-28 11:39:08日期一定要在日志中有才能查出记录
//查询 2020-03-28 11:39:08至2020-03-28 11:41:59时间段内所有包含《关键字》的行
sed -n '/2020-03-28 11:39:08/,/2020-03-28 11:41:59/p' service.out | grep "关键字" --color=auto
注意: 2020-03-28 11:39:08日期一定要在日志中有才能查出记录
//查询 2020-03-28 11:39:08至2020-03-28 11:41:59时间段内所有包含《关键字》的行
sed -n '/2020-03-28 11:39:08/,/2020-03-28 11:41:59/p' service.out | grep "关键字" --color=auto