Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
writeas
/
web-core
espelhamento de
https://github.com/writeas/web-core
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
0
Atividade
Ver código fonte
Prevent findBots.sh running when no arg given
master
Matt Baer
6 anos atrás
pai
ca03ff920a
commit
c0e4c95cfb
1 arquivos alterados
com
5 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+5
-0
bots/findBots.sh
+ 5
- 0
bots/findBots.sh
Ver arquivo
@@ -7,6 +7,11 @@
# usage: findBots.sh application.log
#
if [ -z $1 ]; then
echo usage: findBots.sh [logfilename]
exit 1
fi
cat /var/log/$1 | grep -i 'bot\|spider\|crawl\|scraper\|indexer\|voltron' | awk -F\" '{print $4}' | sort | uniq > bots.txt
rm bots.go
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar