Skip to content

Instantly share code, notes, and snippets.

@iidaatcnt
Last active November 27, 2017 01:16
Show Gist options
  • Save iidaatcnt/bb679971c759f54d6cb73bac16de89f5 to your computer and use it in GitHub Desktop.
Save iidaatcnt/bb679971c759f54d6cb73bac16de89f5 to your computer and use it in GitHub Desktop.
ワンライナー:httpdアクセスログを"["と"]"で区切る
$ grep -E "Server " Web*/messages | \
grep "Oct 27" | \
awk -F'[\\\[|\\\]]' '{print $2}' | \
sort | uniq -c
# 4 1172
# 1 1187
# 2 1247
# 8 1480
# 4 1553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment