source-engine/devtools/bin/uniqifylist.pl

7 lines
104 B
Perl
Raw Normal View History

2020-04-22 16:56:21 +00:00
foreach $_ (sort <> )
{
next if( defined( $prevline ) && $_ eq $prevline );
$prevline = $_;
print;
}