common/tools/sortUnique.pl
author Simon Howkins <simonh@symbian.org>
Wed, 11 Nov 2009 13:22:02 +0000
changeset 753 5069de517698
parent 246 4f2482f1dd48
child 1284 0b4a09013baf
permissions -rw-r--r--
New script which parses raptor logs directly to produce a BRAG summary. New version of XML structure accommodates causes of failure as well as the effect of the failure, and deals with excessive error messages. New structure also avoids a potential problem (bug?, questionable feature?) that both IE and firefox exhibit. Some simplifications of brag utilities module.

#!perl -w
use strict;
# Sorts the input, removes duplicates, and outputs it

# Read it
my @content = <>;

# Sort it, and grep to remove duplicates
my $previous = "\n\n";
@content = grep {$_ ne $previous && ($previous = $_, 1) } sort @content;

# Write it
print @content;