in reply to Re^5: Sorting a (very) large file (better*2)
in thread Sorting a (very) large file
perl -le 'for (0 .. shift()) { $num = int rand(100_000); print qq{12-25-2005\t12:30 PM\t$num\tC:\\someplace\\somefile.txt}; }' 8500000 > file.txt
I found that just loading the file into memory took up 1.7gb on my system! I tried a few variations without getting anything reasonable. I haven't really done a lot of Perl dev on this box - it's a Fedora 8 machine with the Fedora-built v5.8.8. Could be there's something wrong with it.
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Sorting a (very) large file (better*2)
by salva (Canon) on Dec 01, 2007 at 16:43 UTC | |
by samtregar (Abbot) on Dec 01, 2007 at 17:24 UTC | |
by tye (Sage) on Dec 02, 2007 at 21:46 UTC |