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.

1

1 Answer 1

1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .