kdelibs/kio/useragent.pl
2014-11-13 01:04:59 +02:00

13 lines
369 B
Raku
Executable file

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