logide-parsimine/bin/top2

12 lines
195 B
Plaintext
Raw Permalink Normal View History

2018-06-17 20:14:16 +00:00
#!/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