tail -10000 access.log | cut -d ' ' -f 1 | sort | uniq -c | sort -nr | head -n 10
avec un watch -n2 “tail -10000 access.log | cut -d ' ' -f 1 | sort | uniq -c | sort -nr | head -n 10
” pour en faire un outil a la top 😀
Le shell c’est fantastique.
Commentaires