Sign in

Echo / T3212_B2B_723 · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Network
  • T3212_B2B_723
  • tools
  • echoLongString4.pl
  • 从SVN移版本:T3212_61D_MBR_V1.8_2015.07.23(B32B)的代码
    c17ddead
    Echo authored
    2017-09-04 11:43:42 +0800  
    Browse Files »
echoLongString4.pl 303 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/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);