in reply to Bulk Reading and Writing of Large Text Files
Minimal changes might be something like:
... my ($record, $date, $outfile, %stations, $sstation, $linecnt, $pcntg, +@values); ... $date = $ARGV[1]; %stations = map{ $_ => 1 } @ARGV[ 2 .. $#ARGV]; ... if( $values[0] eq $date && exists $stations{ $sstation } ) {
The command line then becomes:
perl midasproc2.pl midas_wxhrly_199901-199912.txt "1999-12-15 11:00" 1 +9260 19261 19262 [...]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bulk Reading and Writing of Large Text Files
by Sterling_Malory (Initiate) on May 21, 2013 at 11:56 UTC | |
by BrowserUk (Patriarch) on May 21, 2013 at 12:29 UTC | |
by Sterling_Malory (Initiate) on May 21, 2013 at 13:54 UTC | |
by BrowserUk (Patriarch) on May 21, 2013 at 14:09 UTC | |
by Anonymous Monk on May 21, 2013 at 15:34 UTC | |
|