#!/bin/bash echo "- Sort by IP" cat /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c | sort -hr | head -n 30