Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-16-2009, 04:01 PM   #1
Registered: Mar 2009
Posts: 82

Rep: Reputation: 16
Divide a big file into small pieces, each has same number of lines

I am wondering if there is some command (sed ?) that could do divide a big text file into small pieces, each of which contains 10 lines.

Any idea is well appreciated,


Old 10-16-2009, 04:08 PM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
man split


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
number of lines to the new file coppuca Linux - Newbie 7 01-06-2009 10:17 AM
print a text file with long lines and line number added powah Linux - General 2 05-26-2006 02:02 PM
How to cut a big file into pieces of a certain size? kornerr Linux - General 9 12-31-2005 03:52 PM
Reading the number of Lines in a File Programming 31 11-24-2005 12:36 AM
Divide up lines with string delimiter elmu Programming 3 10-07-2005 08:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration