# Created on savesnippets.com ยท https://savesnippets.com/p952NbPpi5ELB2 # Most common words in a text file tr -c '[:alnum:]' '\n' < article.txt | \ tr '[:upper:]' '[:lower:]' | \ grep -v '^$' | \ sort | uniq -c | sort -rn | head -20 # Most common HTTP status codes in an access log awk '{print $9}' access.log | sort | uniq -c | sort -rn # Most common IPs hitting a 500 awk '$9 == 500 {print $1}' access.log | sort | uniq -c | sort -rn | head