first commit
This commit is contained in:
12
scripts/count_ip.sh
Normal file
12
scripts/count_ip.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
FILE=;
|
||||
|
||||
for ip in $(tail -n 5000 $FILE |cut -d ' ' -f 1 |sort |uniq);
|
||||
do
|
||||
{
|
||||
COUNT=$(grep ^$ip $FILE |wc -l);
|
||||
if
|
||||
[[ "$COUNT" -gt "500" ]]; then echo "$COUNT: $ip";
|
||||
fi
|
||||
};
|
||||
done
|
Reference in New Issue
Block a user