annotate rapsodyn/MergeFile2x.pl @ 2:761fecc07fa9 draft

Uploaded
author mcharles
date Thu, 11 Sep 2014 03:10:47 -0400
parents 7f36bd129321
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
1 #!/usr/bin/perl
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
2 use strict;
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
3 use warnings;
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
4
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
5 my $in1 = $ARGV[0];
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
6 my $in2 = $ARGV[1];
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
7
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
8 open(IN1, $in1) or die ("Can't open $in1\n");
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
9 while (my $line = <IN1>){
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
10 print $line;
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
11 }
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
12 close (IN1);
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
13
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
14 open(IN2, $in2) or die ("Can't open $in2\n");
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
15 while (my $line = <IN2>){
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
16 print $line;
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
17 }
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
18 close (IN2);
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
19
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
20
7f36bd129321 Uploaded
mcharles
parents:
diff changeset
21