blob: ba1061a6c9bc3603b6bfb49c4ba452b9e07a7635 [file] [log] [blame]
#!/usr/local/bin/perl
$OUTPUT = $ARGV[0];
shift(@ARGV);
@INPUT = @ARGV;
@new_output = sort @INPUT;
if(-e $OUTPUT) {
open(W,">>$OUTPUT") or die "Cannot open $OUTPUT";
} else {
open(W,">$OUTPUT") or die "Cannot open $OUTPUT";
}
foreach (@new_output) {
print W "$_ ";
}
print W "\n";
close(W);