1
0
mirror of https://github.com/danog/gigaclone.git synced 2024-11-30 04:29:09 +01:00

Update gigaclone

This commit is contained in:
Video download 2015-09-25 20:30:48 +02:00
parent 928ebf08c8
commit 15d6c3036f

View File

@ -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