mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
13 lines
369 B
Raku
Executable file
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");
|