common/tools/sortUnique.pl
author arnaudl@UK-ARNAUDL
Fri, 14 Aug 2009 09:44:15 +0100
changeset 316 11662e122465
parent 246 4f2482f1dd48
child 1284 0b4a09013baf
permissions -rw-r--r--
Add my computer following ATS installation instructions found at: https://sites.google.com/a/symbian.org/build_and_test/Home/ats-automated-test-system/ats-howtos,

#!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;