Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
writeas
/
web-core
réplica de
https://github.com/writeas/web-core
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
0
Actividad
Explorar el Código
Prevent findBots.sh running when no arg given
master
Matt Baer
hace 6 años
padre
ca03ff920a
commit
c0e4c95cfb
Se han
modificado 1 ficheros
con
5 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+5
-0
bots/findBots.sh
+ 5
- 0
bots/findBots.sh
Ver fichero
@@ -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
Escribir
Vista previa
Cargando…
Cancelar
Guardar