Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
14 rindas
369 B
14 rindas
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");
|