[Pine-info] Trying to compare two pinercs, to figure out a
repeatable delay
Bert Driehuis
driehuis at playbeing.org
Wed Apr 12 18:38:04 PDT 2006
On Wed, 12 Apr 2006, Matt Ackeret wrote:
> Does anybody have any other ideas on how to easily diff these two
> settings files and/or an idea of what could be causing these delays??
I quickly hacked together the attached script. Run it like
perl reformat_pinerc.pl < .pinerc | sort > t.t
perl reformat_pinerc.pl < .pinerc.BACKUP | sort > y.y
diff t.t y.y
All the script does is canonicalize the .pinerc and ditch empty lines
and comments. I don't know if the output still is a valid pine
configuration, though I believe it might be.
Hope this helps...
Cheers,
-- Bert
--
Bert Driehuis -- driehuis at playbeing.org -- +31-20-3116119
If the only tool you've got is an axe, every problem looks like fun!
-------------- next part --------------
#!/usr/bin/perl -w
use strict;
my $body = "";
while (<STDIN>) {
next if /^#/;
next if /^\s*$/;
$body .= $_;
}
$body =~ s/\n\s+/ /gs;
print $body;
More information about the Pine-info
mailing list