简体   繁体   中英

Grep within date range

Oct 20 13:12:01 2016 aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Dec 9 16:13:01 2016 bbbbbbbbbbbbbbbbbbbbbbbbbbbb
Jan 20 11:11:01 2017 cccccccccccccccccccccccccccc

How do I grep within 2 date range. For eg, 10/19/2016 12:24 to 01/08/2017 19:06

AFAIK, you cannot.

However, there is a solution with awk here: https://unix.stackexchange.com/questions/76805/read-log-file-between-two-dates

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM