0x00
日志提取 工具awk
find ./ -name "localhost_access_log*" | xargs grep "GET" | grep "2017:2" | awk '{print $4" "$5 " " $6 " " $7 " " $8 " " $9 " " $10}' ;
将GET请求的日志提取到指定的文件 get_request.log
find ./ -name "localhost_access_log*" | xargs grep "GET" | grep "2017:2" | awk '{print $4" "$5 " " $6 " " $7 " " $8 " " $9 " " $10}' > get_request.log