通過訪問日誌,統計前十名的pv值
cat /var/log/httpd/access_log |grep html|sed 's/^.*GET//g'|sed 's/HTTP.*$//g'|sort|uniq -c|sort -nr|sed -n '1,10p'
cat /var/log/httpd/access_log|awk -F \" '{print $2}' | awk '{print $2}' | grep 'html$' | sort | uniq -c | sort -nr | head -n 10
awk ' {print $7} ' /var/log/httpd/access_log |grep html| sort | uniq -c | sort -nr | head -n 10