HEX
Server: Apache
System: Linux viper.innovativeinternet.net 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User: thetradingroom (1095)
PHP: 8.3.25
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //ibin/uniq.pl
#!/usr/bin/perl
# uniq.pl
#
# reads from from stdin or arg0, writes to stdout or arg1
if ($ARGV[0] ne "") { open STDIN, $ARGV[0];}
if ($ARGV[1] ne "") { open STDOUT, ">$ARGV[1]";}

while ( <STDIN> )
{
    unless($i{$_}++) {
$_=lc($_);

#print $_ . " -- " . $i2;
        push(@uniq,$_);


    } else {
	print "Removed Duplicate: " . $_ ;
        push(@remove,"Removed Duplicate: " . $_);

    }
}
print (sort(@uniq));    # sorted
#print (sort(@remove));    # sorted

#print (@uniq);           # unsorted