Thanks, Jay. This makes sense but I need to write a script to prompt for user input, a start date and a begin date. For example, if user input start date is “0710” and end date is “0716” then I want the program to append all the files between that date range. Is there a way?
For example: $myperl.pl
Enter start date: 0710 Enter end date: 0716
Thanks again,
-----Original Message-----
@files = ( 'Meas.atl00.1040.0710, 'Meas.atl00.1040.0711', 'Meas.atl00.1040.0712', 'Meas.atl00.1040.0713', 'Meas.atl00.1040.0714', 'Meas.atl00.1040.0715', 'Meas.atl00.1040.0716');
open (OUT, '>>bigfile.txt')||die $!;
foreach (@files){ open (IN, "$_")|| die $!; while (<IN>){ print OUT $_; } close IN; } close OUT;
Regards, Jay
-----Original
Message-----
|
_______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs