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.:
output1.txtcontains the first 10,000 lines of the original file.output2.txtcontains the next 10,000 lines of the original file.-
etc.
-
The last file would probably have less than 10,000 lines.
- If I wanted to join them back, I’d just use
cat output*.txt > joined.tex.
How can I split the file in this way?
Using split
E.g.