logide-parsimine/bin/top2

12 lines
195 B
Bash
Executable File

#!/bin/bash
# Käivitamiseks: cat access.log | python top
echo "Enim külastatud URL-id:"
cat \
| awk -F \" '{ print $2}' \
| cut -d ' ' -f 2- \
| sort \
| uniq -c \
| sort -n -r \
| head