BASH tip: Top web pages
Here is a quick command to generate a list of the top pages in the Apache web-server’s access log: gawk ‘{ print $7}’ /var/log/httpd/access_log | sort | uniq -c | sort -nr | head -n 20 Parts of the command explained: gawk ‘{ print $7}’ — return only the 7th…