Re: Trying to compare two pinercs, to figure out a repeatable delay
Bert Driehuis <[email protected]>
| Newsgroups | gmane.mail.pine.general |
|---|---|
| Message-ID | <[email protected]> |
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 -- [email protected] -- +31-20-3116119 If the only tool you've got is an axe, every problem looks like fun! _______________________________________________ Pine-info mailing list [email protected] http://mailman1.u.washington.edu/mailman/listinfo/pine-info
reformat_pinerc.pl
(text/plain, 167 B)
#!/usr/bin/perl -w
use strict;
my $body = "";
while (<STDIN>) {
next if /^#/;
next if /^\s*$/;
$body .= $_;
}
$body =~ s/\n\s+/ /gs;
print $body;