Subject:
|
Re: Splitting text files.
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Mon, 6 Nov 2000 09:38:35 GMT
|
Viewed:
|
254 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
guito wrote:
>
> 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.
If you're using a UNIX variant the split command will do this
for you. i.e.
split -l 1000 [filename]
Chris
|
|
Message has 2 Replies:
Message is in Reply To:
![](/news/x.gif) | | Splitting text files.
|
| 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 (...) (24 years ago, 6-Nov-00, to lugnet.off-topic.geek)
|
4 Messages in This Thread: ![Splitting text files. -Kevin Bannister (6-Nov-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif) ![](/news/246.gif) ![Re: Splitting text files. -Matthew Miller (6-Nov-00 to lugnet.off-topic.geek)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Splitting text files. -Kevin Bannister (6-Nov-00 to lugnet.off-topic.geek)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|