Exclude certain bots when sorting through Apache server logs
I have a bash script that sorts the highest hits on my server logs, and prints the IP address and user agent: cat /var/log/apache2/proxy.example.com.access.log | awk -F'|' '{print $5 $11}' | sort -n | uniq -c | sort -nr |…