linux - How can I split a file into a given number of parts in Perl? (On Unix) -


I have several large files, each of which I want to split / split into parts in predefined parts.

Is there an effective way of doing this in Unix (such as through awk / sed / perl)?

In addition each file can contain a different number of rows.

  file1.txt 20,300,055 lines File2.txt 10,033,221 lines etc. ...  

If you want to split each file into a fixed number of rows or bytes, you can use the command.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -