Quellcode durchsuchen

Explain findBots.sh a little more

master
Matt Baer vor 6 Jahren
Ursprung
Commit
ca03ff920a
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. +4
    -1
      bots/findBots.sh

+ 4
- 1
bots/findBots.sh Datei anzeigen

@@ -1,7 +1,10 @@
#!/bin/bash

#
# Generates a Go map containing all bots that have accessed Write.as
# Generates a Go map containing all bots that have accessed Write.as from the
# application logs stored in /var/log/
#
# usage: findBots.sh application.log
#

cat /var/log/$1 | grep -i 'bot\|spider\|crawl\|scraper\|indexer\|voltron' | awk -F\" '{print $4}' | sort | uniq > bots.txt


Laden…
Abbrechen
Speichern