Гоголя 126а, Стерлитамак, РБ, 453130
iptables_drop_f.sh
#!/bin/bash
for i in $(cat iptables_drop_f.log | awk '{print $11}' | sed 's/SRC=192.168.0.//')
do
table[$(expr $i)]=$(expr ${table[$i]} + 1)
done
for j in ${!table[@]}
do
echo $j ${table[$j]}
done