$ cat access.log
212.164.35.62:80
212.164.35.62:80
212.164.35.62:443
212.164.3.95:80
212.164.4.26:80
212.164.4.26:80
212.164.4.26:443
212.164.48.174:80
212.164.49.104:80
#!/bin/bash
for ip in `cat ./access.log | awk '{split($0,a,":"); print a[1]}'`
do
dup=`cat ./access.log | awk '{split($0,a,":"); print a[1]}' | grep $ip | wc -l`
if [[ "$dup" > 1 ]]
then
:
else
echo -e "$ip"
fi
done