Village
Village

Reputation: 24383

Dividing a file into separate files with 10,000 lines each

I have a file which is too large for the software I am using, so I want to cut it into smaller parts. It is a plain text file. How can I cut it into seperate files. E.g.:

How can I split the file in this way?

Upvotes: 3

Views: 877

Answers (1)

MattH
MattH

Reputation: 38247

Using split

E.g.

split -l 10000 originalfile.txt

Upvotes: 5

Related Questions