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

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -