-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gladstone Daniel - dglads wrote:
> I have a text file that can be anywhere from 40,000 lines to 120,000
> Lines, 
> 
> I want it to split the file so that no file is larger then 20,000 lines
> 
> 1) run a line count 
> 2) split the file into pieces 
Note that the split command can do this exactly.  If you specifically
need a Perl solution, perhaps these resources will be useful:
* http://search.cpan.org/~cwest/ppt-0.14/bin/split (source:
http://search.cpan.org/src/CWEST/ppt-0.14/bin/split)
* http://search.cpan.org/~middleto/File-Split-0.30/lib/File/Split.pm

Hope this helps,
Ricky
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF5hrLiXbZ7NjlUcARAptpAJ9BJblYudMGY2GIaPyikXyOffaiGACeLo6X
QARf5v4S8qHUULwq/+jJ41U=
=EYRA
-----END PGP SIGNATURE-----

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to