On 24/10/18 20:08, t _ liang wrote:
> I split file like this:
>  split --line-bytes=10M test.txt
> but I also want to limit line.
>  so the cmd maybe like this:
>  split --line-bytes=10M --max-lines=100 test.txt

You might leverage the --filter functionality to combine modes like:

  split -C 10M in --filter 'split -l 100 - $FILE-'

cheers,
Pádraig

Reply via email to