#!/bin/bash # perhaps the field to be analyted is the 2nd field log=/path/to/log; keyword=”the keyword”; cat $log | cut -f2 | grep $keyword | sort | uniq -c -i[/codesyntax]
Categories
- Training (26)
- PHP (16)
- Zend Framework (16)
- Optimization (13)
- Linux (12)
- iOS (10)
- Coding Standards (9)
- Architecture (8)
- Ubuntu (8)
- 56com (7)
- Design Patterns (6)
- JavaScript (6)
- 公司 (6)
- My Live (5)
- Network Protocol (5)
- Nginx (5)
- Project Management (5)
- RHEL (5)
- SVN (5)
- MongoDB (4)
- Cache (3)
- Git (3)
- Lua (3)
- Magento (3)
- SEO (3)
Archives
- 2018-11
- 2018-05
- 2018-02
- 2017-07
- 2017-03
- 2015-04
- 2015-03
- 2015-02
- 2014-08
- 2014-06
- 2014-05
- 2014-01
- 2013-08
- 2013-05
- 2013-02
- 2012-12
- 2012-08
- 2012-05
- 2012-04
- 2011-12
- 2011-11
- 2011-09
- 2011-08
- 2011-07
- 2011-06
- 2011-05
- 2011-04
- 2011-03
- 2011-02
- 2011-01
- 2010-12
- 2010-11
- 2010-10
- 2010-09
- 2010-08
- 2010-07
- 2010-06
- 2010-03
- 2010-01
- 2009-12
- 2009-11
- 2009-08
- 2009-07
- 2009-06
- 2009-05
- 2009-04