count unique ip addresses linux accsses log code example
Example: count unique ip addresses linux accsses log
cat access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20
cat access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20