Forum Moderators: DixonJones
it breaks down as follows:
-- display the last 50 lines of the access_log
tail -n 50 access_log
-- remove everyting from the start of the date so you've ony got the ip-numbers
sed 's/\[.*//'
-- sort the ip-numbers
sort
-- remove duplicates
uniq
-- count the number of unique ip-numbers
uniq -f 20 -c