egrep '(Googlebot|Sogou web spider|Baiduspider)' access_20120926.log | awk '{print $4,$7,$9}' | sed 's/\[//g' > access.log
shell脚本实现过滤nginx访问日志某关键字的行,并列出访问时间、状态码信息
最新推荐文章于 2021-05-08 19:13:04 发布
egrep '(Googlebot|Sogou web spider|Baiduspider)' access_20120926.log | awk '{print $4,$7,$9}' | sed 's/\[//g' > access.log