The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-14-2004
gtapia gtapia is offline
Registered User
  
 

Join Date: Jul 2004
Location: mexico
Posts: 2
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0