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.
27 lines
400 B
27 lines
400 B
15 years ago
|
#! /usr/bin/perl
|
||
|
|
||
|
use strict;
|
||
|
|
||
|
my $currentGroup = "";
|
||
|
my $key;
|
||
|
my $value;
|
||
|
|
||
|
while (<>)
|
||
|
{
|
||
|
chomp;
|
||
|
if ( /^\[/ )
|
||
|
{
|
||
|
$currentGroup = $_;
|
||
|
next;
|
||
|
}
|
||
|
($key, $value) = ($_ =~ /([^=]+)=[ \t]*([^\n]+)/);
|
||
|
if ($_ =~ /TabPlacement/)
|
||
|
{
|
||
|
if ($value eq "0")
|
||
|
{
|
||
|
print("# DELETE $currentGroup$key\n");
|
||
|
print("$key=Top\n");
|
||
|
}
|
||
|
}
|
||
|
}
|