To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 2276
2275  |  2277
Subject: 
Splitting text files.
Newsgroups: 
lugnet.off-topic.geek
Date: 
Mon, 6 Nov 2000 03:37:42 GMT
Viewed: 
151 times
  
does anyone know of a way to split a text file into multiple
files based on the number of lines?  ie: 5000 lines split in
to five files of 1000 lines each.

i've been trying to figure out a way to do it with perl, but
no luck so far.  but any way to get it done is appreciated.

--
The man of science has learned to believe in justification, not by
faith, but by verification.
-Thomas H. Huxley (1825-95)



Message has 1 Reply:
  Re: Splitting text files.
 
(...) If you're using a UNIX variant the split command will do this for you. i.e. split -l 1000 [filename] Chris (24 years ago, 6-Nov-00, to lugnet.off-topic.geek)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR