0

Using Total Commander you can split files by byte size, but that's obviously indiscriminate towards the content.

enter image description here

Is it possible to split files by number of lines instead?

Using Total Commander or some other tool.

0

Using busybox head and tail will help
https://frippery.org/busybox/

example sources, (you can cat or type or pipe your files):
busybox seq 1 100

first 50 lines:
busybox seq 1 100 | busybox head -50

last 50 lines:
busybox seq 1 100 | busybox tail -50

41st to 50th lines:
busybox seq 1 100 | busybox head -50 | busybox tail -10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.