annotate rapsodyn/MergeMultiFile.pl @ 7:3f7b0788a1c4 draft

Uploaded
author mcharles
date Tue, 07 Oct 2014 10:34:34 -0400
parents
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