mirror of
https://github.com/danog/gigaclone.git
synced 2024-11-30 04:29:09 +01:00
Update gigaclone
This commit is contained in:
parent
928ebf08c8
commit
15d6c3036f
12
gigaclone
12
gigaclone
@ -10,16 +10,10 @@ wget http://profile.gigaset.net/logs.tgz && tar -xzf logs.tgz
|
||||
|
||||
cd log
|
||||
for f in ./*;do {
|
||||
echo "Remove 404 for $f"
|
||||
sed -i '/.*404.*/d' $f
|
||||
echo "Remove 403 for $f"
|
||||
sed -i '/.*403.*/d' $f
|
||||
echo "Keep only URLS for $f"
|
||||
cut -d'H' -f1 $f >$tmp/tmp2
|
||||
echo "Insert URL for $f"
|
||||
sed 's/^/http:\/\/profile\.gigaset\.net/g' $tmp/tmp2 >$tmp/tmp
|
||||
echo "Working... for $f"
|
||||
sed -i '/.*404.*/d;/.*403.*/d;s/\sHTTP.*//g;s/.*\s/http:\/\/profile\.gigaset\.net/g;/http:\/\/profile\.gigaset\.net\"\"/d' $f
|
||||
echo "Remove duplicates for $f"
|
||||
awk '!seen[$0]++' $tmp/tmp >>$tmp/tmp.txt
|
||||
awk '!seen[$0]++' $f >>$tmp/tmp.txt
|
||||
};done
|
||||
|
||||
cd $dir
|
||||
|
Loading…
Reference in New Issue
Block a user