shell 日志统计常用脚本
2015-11-14 16:34
423 查看
查看web访问量前十的ip
本文出自 “千面” 博客,请务必保留此出处http://oslibo.blog.51cto.com/10854638/1712755
awk '{print $1}' access.log |sort | uniq -c | sort -nr | head -n 10查看某一天访问量前十IP
cat access.log | grep "07/Nov/2013" | awk '{print $1}' | uniq -c | sort -nr | head -n 1查看访问量前十页面
awk '{print $11}' access.log | sort | uniq -c | sort -nr | head -n 10
本文出自 “千面” 博客,请务必保留此出处http://oslibo.blog.51cto.com/10854638/1712755
相关文章推荐
- shell入门-变量
- curl sh带参数运行
- xshell环境下vim编辑脚本右侧小键盘无法键入数字
- shell入门-shell特性
- shell-bash学习02运算、拼接、重定向
- shell小点
- shell
- shell
- Shell是什么?
- 《懒人Shell脚本》之一——遍历文件并格式化输出文件
- Xshell连接ubuntu
- shell script练习
- shell实现洗牌随机
- linux shell 编程2(if else 判断文章的可读、可写可执行)
- PowerShell 之 NTFS
- shell自动收集服务器硬件系统信息通过web页面显示
- Powershell管理系列(二十四)PowerShell操作之批量启用Exchange用户头像
- HBase shell scan 模糊查询
- How to write a simple shell program
- Bash 的 no-fork 优化