annotate rapsodyn/MergeMultiFile.pl @ 15:56d328bce3a7 draft default tip

Uploaded
author mcharles
date Thu, 29 Jan 2015 08:54:06 -0500
parents 3f7b0788a1c4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
1 #!/usr/bin/perl
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
2 #V1.0.0
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
3 use strict;
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
4 use warnings;
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
5
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
6 my @files = split(/,/,$ARGV[0]);
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
7 for (my $i=0;$i<=$#files;$i++){
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
8
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
9 open(IN, $files[$i]) or die ("Can't open ",$files[$i],"\n");
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
10 while (my $line = <IN>){
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
11 print $line;
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
12 }
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
13 close (IN);
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
14 }
3f7b0788a1c4 Uploaded
mcharles
parents:
diff changeset
15