Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 17th, 2012  |  syntax: None  |  size: 0.12 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. FILE="thttpd.log"
  3. for ip in $(cat $FILE |awk ' { print $1 $7 }' |sort |uniq); do
  4.     echo "COUNT: $ip"
  5. done