1. 查看10:21:10至10:21:39之间的日志:
cat /var/log/user.log | grep -n 'Feb 27 10:21:[1,2,3]'
2. 查看10:37:00至10:37:19之间的日志:
cat /var/log/user.log | grep -n "Feb 27 10:37:[0,1]" | grep "0x44 0x55"
cat /var/log/user.log.1 | grep "2017-03-06 19:4[3456]"