日志部分内容如下:
2016-02-21 09:59:58.522 INFO 0a030860-2003-24266999-236 c3 /result/payNotifyResult.htm 17 0
2016-02-21 09:59:59.092 INFO 0a030860-2003-24266999-237 c0 /cashier/getCode.htm 1 71
2016-02-21 09:59:59.303 INFO 0a030860-2003-24266999-203 c6 /cashier/qwaitResult.htm 9522 154
2016-02-21 09:59:59.450 INFO 0a030860-2003-24266999-238 c9 /cashier/home.htm 49 0
2016-02-21 09:59:59.656 INFO 0a030860-2003-24266999-240 c1 /cashier/statistic.htm 8 146
我想匹配 09:30:00.000-10:00:00.000 (左闭右开) 时间段的行
我的写法:
awk '$2 ~ /^09:[3-5]{1}.*/ {print $0}' request.log.2016-02-21.log
但是没有结果,求解释原因及正确姿势