Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w $| = 1; $in_file = 'very_large_text_file'; $out_file = 'parsed_text_file'; open(IN, "<$in_file"); open(OUT, ">$out_file"); while(<IN>){ ($email, $other) = split(/\s+/,$_); print OUT "$email\n"; } close(OUT); close(IN);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing a 3 - 4 gig text file
by VSarkiss (Monsignor) on May 14, 2002 at 19:40 UTC | |
by Anonymous Monk on May 14, 2002 at 19:43 UTC | |
by Elian (Parson) on May 14, 2002 at 20:07 UTC | |
|
Re: Parsing a 3 - 4 gig text file
by grep (Monsignor) on May 14, 2002 at 19:44 UTC | |
by defyance (Curate) on May 14, 2002 at 20:00 UTC |