You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/tdeio/useragent.pl

14 lines
369 B

#!/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");