|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Split files into chunks of $n linesby kirbyk (Friar) |
| on Sep 27, 2005 at 15:56 UTC ( #495425=note: print w/ replies, xml ) | Need Help?? |
|
If you're in unix, use the 'split' command. I think the syntax would be 'split -l 4000 filename', and it will do exactly what you want. (See man split for more detail.)
-- Kirby, WhitePages.com
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||