我有幾個Apache日誌文件已被附加在一起,我需要按日期排序它們。它們採用以下格式:如何按日期排序Apache日誌文件?
"www.company.com" 192.168.1.1 [01/Jan/2011:00:04:17 +0000] "GET /foobar/servlet/partner/search/results?catID=1158395&country=10190&id=5848716&order_by=N-T&order_by_dir=-&product=10361996&siteID=1169823&state= HTTP/1.1" 200 10459 0 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
在Linux命令行上執行此操作的最佳方式是什麼?
也許把它移到ServerFault或unix.stackexchange.com? – ohmantics 2011-04-15 05:57:36