April 2018
Beginner
284 pages
7h 3m
English
We must use -l otherwise, it will count words instead.
$ awk '{print $1}' access.log | sort | uniq -c
$ awk '{print $7}' access.log | grep 'php' | sort | uniq -c | sort -nr | head -n 1
You should use head -n 1 to get the one page only.