#!/bin/bash
function GetIP() {
  IFS=". "
  while read -u $1 -a IP; do
    printf "%03d.%03d.%03d.%03d\n" ${IP[0]} ${IP[1]} ${IP[2]} ${IP[3]}
  done
}
exec 3<access.log
GetIP 3 | sort | uniq
