![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Split a file with no pattern -- Split, Csplit, Awk | madhunk | UNIX for Dummies Questions & Answers | 10 | 12-17-2007 12:57 PM |
| The here document << | rahulrathod | Shell Programming and Scripting | 6 | 01-23-2006 12:05 AM |
| Teaching myself Here Document | ericelysia | UNIX for Dummies Questions & Answers | 3 | 10-31-2005 12:33 AM |
| echo with a here-document | vino | Shell Programming and Scripting | 2 | 08-19-2005 09:48 AM |
| Help on find a document | merlin | UNIX for Dummies Questions & Answers | 1 | 02-14-2002 08:42 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to split a document
Hi.. Does anybody knows how can I split a file in N documents?? I have a document of more than 80,000 lines (it is generated in a dynamic way, sometimes has 80,000 others 30,000 , or 1000,000) Im trying tyo break this file in only 1 lines of commands but I want to break it in a N differents files of (nearly) the same lines equally, so I need to check the number of lines of this file and after that split it in N differents files with the same number of lines, this is beause I need to have pararel process working each one of this files.
I know about the wc -l command return the number of lines, and the split command split -l XXXXX thefile .. how can I pipe this commands in order to have N files of the same time on a dynamic way??? Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|