open Kwrite, copy first 2000 lines, past into new file. Repeat. --- Brett Russ <bruss@alum.wpi.edu> wrote:
On 10/4/05, Chuck Anderson <cra@wpi.edu> wrote:
On Tue, Oct 04, 2005 at 05:42:01PM +0700, Aramico wrote:
I have a log with more than 200000 lines in one single file. Can I split it into several defined files as file1, file2, file3, file4, filen where I can defined it for 20000 line for each ? How can I make it ? what command in linux to make it ?
The 'split' command can do that:
split -l 20000 -d --verbose file file
Ah, much easier :-)
OK, now that we know the easiest way, who can post the most obfuscated method?
:-)
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug