summaryrefslogtreecommitdiffstats
path: root/tdeio/useragent.pl
blob: f31e31e1d148cf7b8bba7ac7ce4bf93a5fa39762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
# the script is called with interpreter, so don't worry about the path

while(<>)
{
    if (($key, $domain, $useragent, $comment) = ($_ =~ /(Entry\d)=\.?([^:]+)::([^:]+)::([^\n]+)/))
    {
       printf ("[%s]\n", $domain);
       printf ("UserAgent=%s\n", $useragent);
       printf ("# DELETE %s\n", $key);
    }
}
printf ("# DELETE EntriesCount\n");